From 0f28904e41b10caa51221fcfe244a46cf4359ed5 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 12 Jun 2006 16:16:17 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=10313 --- api/graphics_api.h | 4 ++-- api/static_graphics.C | 4 ++-- api/x_opengl.C | 2 +- checkin_notes | 9 +++++++++ doc/graphics.php | 8 ++++---- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/api/graphics_api.h b/api/graphics_api.h index e0dfdb3f19..1bcd307795 100755 --- a/api/graphics_api.h +++ b/api/graphics_api.h @@ -38,8 +38,8 @@ extern void app_graphics_reread_prefs(void); // called when get REREAD_PREFS message from core client. // called in the graphics thread extern void app_graphics_resize(int width, int height); -extern void boinc_app_mouse_button(int x, int y, int which, bool is_down); -extern void boinc_app_mouse_move(int x, int y, bool left, bool middle, bool right); +extern void boinc_app_mouse_button(int x, int y, int which, int is_down); +extern void boinc_app_mouse_move(int x, int y, bool left, int middle, int right); extern void boinc_app_key_press(int, int); extern void boinc_app_key_release(int, int); diff --git a/api/static_graphics.C b/api/static_graphics.C index 367635acdd..70edc328d9 100644 --- a/api/static_graphics.C +++ b/api/static_graphics.C @@ -64,9 +64,9 @@ void boinc_app_key_press(int, int) { void boinc_app_key_release(int, int) { } -void boinc_app_mouse_button(int x, int y, int which, bool is_down) { +void boinc_app_mouse_button(int x, int y, int which, int is_down) { } -void boinc_app_mouse_move(int x, int y, bool left, bool middle, bool right) { +void boinc_app_mouse_move(int x, int y, int left, int middle, int right) { } void app_graphics_resize(int w, int h) { glViewport(0, 0, w, h); diff --git a/api/x_opengl.C b/api/x_opengl.C index 97fe9181d0..a4356d7fff 100644 --- a/api/x_opengl.C +++ b/api/x_opengl.C @@ -118,7 +118,7 @@ void mouse_click_move(int x, int y){ } } -void mouse_move(int x, int y) { +void mouse_move(int, int) { if (current_graphics_mode == MODE_FULLSCREEN){ set_mode(MODE_HIDE_GRAPHICS); } diff --git a/checkin_notes b/checkin_notes index 6869da6652..b828acfaf7 100755 --- a/checkin_notes +++ b/checkin_notes @@ -5838,3 +5838,12 @@ David 11 June 2006 error_numberse.h filesys.C,h util.C + +David 12 June 2006 + - Graphics API: change params of boinc_app_mouse_button() + and boinc_app_mouse_move() from bool to int (for ANSI C compatibility) + + api/ + graphics_api.h + static_graphics.C + x_opengl.C diff --git a/doc/graphics.php b/doc/graphics.php index 8cba564b29..10bbc525bf 100644 --- a/doc/graphics.php +++ b/doc/graphics.php @@ -104,15 +104,15 @@ The application must supply the following input-handling functions:
 void boinc_app_mouse_move(
     int x, int y,       // new coords of cursor
-    bool left,          // whether left mouse button is down
-    bool middle,
-    bool right
+    int left,          // whether left mouse button is down
+    int middle,
+    int right
 );
 
 void boinc_app_mouse_button(
     int x, int y,       // coords of cursor
     int which,          // which button (0/1/2)
-    bool is_down        // true iff button is now down
+    int is_down        // true iff button is now down
 );
 
 void boinc_app_key_press(