Navigation Menu

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

Graphics.status.button bug on Macintosh #2699

Closed
vicuna opened this issue Mar 5, 2001 · 1 comment
Closed

Graphics.status.button bug on Macintosh #2699

vicuna opened this issue Mar 5, 2001 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 5, 2001

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

Bug description

Full_Name: Hao-yang Wang
Version: 3.00
OS: MacOS
Submission from: 95x16.filemaker.com (17.184.16.95)

On Macintosh, the function Graphics.wait_next_event returns a wrong value for
status.button .

Here is the patch that fixes the problem:

diff -cr ocaml-3.00~/maccaml/graph.c ocaml-3.00/maccaml/graph.c
*** ocaml-3.00~/maccaml/graph.c Mon Apr 24 23:15:58 2000
--- ocaml-3.00/maccaml/graph.c Thu Feb 1 17:38:44 2001


*** 1066,1072 ****
|| askmouseup && what == mouseUp){
mouse_x = graphQ[i].where.h;
mouse_y = graphQ[i].where.v;
! button = graphQ[i].what = mouseDown;
keypressed = 0;
DequeueEvent (i);
goto gotevent;
--- 1066,1072 ----
|| askmouseup && what == mouseUp){
mouse_x = graphQ[i].where.h;
mouse_y = graphQ[i].where.v;
! button = graphQ[i].what == mouseDown;
keypressed = 0;
DequeueEvent (i);
goto gotevent;

@vicuna
Copy link
Author

vicuna commented Mar 6, 2001

Comment author: administrator

From: hywang@pobox.com

On Macintosh, the function Graphics.wait_next_event returns a wrong value for
status.button .

Here is the patch that fixes the problem:

Thanks a lot !

-- Damien

@vicuna vicuna closed this as completed Mar 6, 2001
@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