Skip to content

Graphics background color under Windows #9

@vicuna

Description

@vicuna

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:
  1. instead of writing on the graphic window "OCaml graphics" it is
    written Chinese characters.
  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    mantisIssues imported from Mantis (i.e. old...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions