-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
mantisIssues imported from Mantis (i.e. old...)Issues imported from Mantis (i.e. old...)
Description
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";;
- : unit = ()
draw_poly [| 30,300; 200,40; 400,190; 250,500 |];;
- : unit = ()
set_color red;;
- : unit = ()
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
mantisIssues imported from Mantis (i.e. old...)Issues imported from Mantis (i.e. old...)