summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_fb/ecore_fb_ps2.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-07-06 00:08:52 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2010-07-06 00:08:52 +0000
commitc7d1c78c46c7e264e21506e63aa5961b813e1575 (patch)
tree8a5fe3d9717a114370b53e35c3fd68e49d3254b8 /legacy/ecore/src/lib/ecore_fb/ecore_fb_ps2.c
parent8dfc47998e2d5bceb3f51cf22ee70ca1104d1da1 (diff)
Finish fixing int => Eina_Bool
A buggy standard.h caused some parser errors in the previous committed patch generated by Coccinelle. This commit find the other places. SVN revision: 50052
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_fb/ecore_fb_ps2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/legacy/ecore/src/lib/ecore_fb/ecore_fb_ps2.c b/legacy/ecore/src/lib/ecore_fb/ecore_fb_ps2.c
index 7c8dc62ec2..161c200ec8 100644
--- a/legacy/ecore/src/lib/ecore_fb/ecore_fb_ps2.c
+++ b/legacy/ecore/src/lib/ecore_fb/ecore_fb_ps2.c
@@ -40,7 +40,7 @@ ecore_fb_ps2_shutdown(void)
40 _ecore_fb_ps2_fd = 0; 40 _ecore_fb_ps2_fd = 0;
41} 41}
42 42
43static int 43static Eina_Bool
44_ecore_fb_ps2_fd_handler(void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __UNUSED__) 44_ecore_fb_ps2_fd_handler(void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __UNUSED__)
45{ 45{
46 static int prev_x = 0, prev_y = 0, prev_button = 0; 46 static int prev_x = 0, prev_y = 0, prev_button = 0;
@@ -60,9 +60,9 @@ _ecore_fb_ps2_fd_handler(void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __U
60 ptr += _ecore_fb_ps2_event_byte_count; 60 ptr += _ecore_fb_ps2_event_byte_count;
61 num = sizeof(Ecore_Fb_Ps2_Event) - _ecore_fb_ps2_event_byte_count; 61 num = sizeof(Ecore_Fb_Ps2_Event) - _ecore_fb_ps2_event_byte_count;
62 v = read(_ecore_fb_ps2_fd, ptr, num); 62 v = read(_ecore_fb_ps2_fd, ptr, num);
63 if (v < 0) return 1; 63 if (v < 0) return EINA_TRUE;
64 _ecore_fb_ps2_event_byte_count += v; 64 _ecore_fb_ps2_event_byte_count += v;
65 if (v < num) return 1; 65 if (v < num) return EINA_TRUE;
66 t = ecore_time_get(); 66 t = ecore_time_get();
67 _ecore_fb_ps2_event_byte_count = 0; 67 _ecore_fb_ps2_event_byte_count = 0;
68 if (_ecore_fb_ps2_event.button & 0x10) 68 if (_ecore_fb_ps2_event.button & 0x10)
@@ -144,7 +144,7 @@ _ecore_fb_ps2_fd_handler(void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __U
144 prev_button = button; 144 prev_button = button;
145 } 145 }
146 while (v > 0); 146 while (v > 0);
147 return 1; 147 return EINA_TRUE;
148} 148}
149/** 149/**
150 * @defgroup Ecore_FB_Click_Group Framebuffer Double Click Functions 150 * @defgroup Ecore_FB_Click_Group Framebuffer Double Click Functions