Original bug ID: 7745
Reporter: sampo
Status: confirmed (set by @dra27 on 2018-02-23T21:39:34Z)
Resolution: open
Priority: normal
Severity: minor
Version: 4.06.0
Category: otherlibs
Monitored by: @nojb
Bug description
Hello everybody.
I tested this program found at this address https://www.typerex.org/images/ocpwin-graphics.png
#load "graphics.cma";;
open Graphics;;
open_graph "600x600";;
draw_poly [| 30,300; 200,40; 400,190; 250,500 |];;
set_color red;;
fill_poly [| 35,300; 200,45; 395,190; 250,495 |];;
- : unit = ()
With Windows(OCaml 4.06.0), two things are different:
- instead of writing on the graphic window "OCaml graphics" it is
written Chinese characters.
- instead of the red color, the black color is displayed.
With Linux(OCaml 4.02.3), one error:
open_graph "600x600";;
Exception: Graphics.Graphic_failure "Cannot open display 600x600".
Thank you.
(I am not sure which category I have registered, sorry if it's not the right one)
Original bug ID: 7745
Reporter: sampo
Status: confirmed (set by @dra27 on 2018-02-23T21:39:34Z)
Resolution: open
Priority: normal
Severity: minor
Version: 4.06.0
Category: otherlibs
Monitored by: @nojb
Bug description
Hello everybody.
I tested this program found at this address https://www.typerex.org/images/ocpwin-graphics.png
#load "graphics.cma";;
open Graphics;;
open_graph "600x600";;
draw_poly [| 30,300; 200,40; 400,190; 250,500 |];;
set_color red;;
fill_poly [| 35,300; 200,45; 395,190; 250,495 |];;
With Windows(OCaml 4.06.0), two things are different:
written Chinese characters.
With Linux(OCaml 4.02.3), one error:
open_graph "600x600";;
Exception: Graphics.Graphic_failure "Cannot open display 600x600".
Thank you.
(I am not sure which category I have registered, sorry if it's not the right one)