Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000302OCaml~DO NOT USE (was: OCaml general)public2001-03-05 22:042001-03-06 17:51
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000302: Graphics.status.button bug on Macintosh
DescriptionFull_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;

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000525)
administrator (administrator)
2001-03-06 14:45

>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

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker