Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draw_rect and fill_rect in Graphics #2491

Closed
vicuna opened this issue Apr 22, 2004 · 1 comment
Closed

draw_rect and fill_rect in Graphics #2491

vicuna opened this issue Apr 22, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 22, 2004

Original bug ID: 2491
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Eijiro Sumii
Version: 3.07+2, 3.07+17 (2004-04-22)
OS: Windows 2000, Debian Woddy, MacOSX Darwin
Submission from: mor371-1.cis.upenn.edu (158.130.12.182)

It seems that draw_rect and fill_rect are still inaccurate in 3.07+2
and 3.07+17 (2004-04-22) both on X (including MacOSX) and Win32 but in
different ways. This is apparent if you do:

Graphics.open_graph "";;

  • : unit = ()

Graphics.plot 0 0;;

  • : unit = ()

Graphics.plot (Graphics.size_x () - 1) (Graphics.size_y () - 1) ;;

  • : unit = ()

Graphics.draw_rect 0 0 (Graphics.size_x ()) (Graphics.size_y ()) ;;

  • : unit = ()

or:

Graphics.set_color Graphics.foreground ;;

  • : unit = ()

Graphics.draw_rect 10 10 100 100 ;;

  • : unit = ()

Graphics.set_color Graphics.blue ;;

  • : unit = ()

Graphics.fill_rect 11 11 98 98 ;;

  • : unit = ()
@vicuna
Copy link
Author

vicuna commented Jun 21, 2004

Comment author: administrator

Tentative fix under X 2004-05-30 by XL.
Matching fix under Windows 2004-06-21 by XL.

@vicuna vicuna closed this as completed Jun 21, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant