summaryrefslogtreecommitdiff
path: root/uisimulator/x11/button-x11.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-06-10 13:29:52 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-06-10 13:29:52 +0000
commita6142ab7ab58f69a3f1a034db4bdf1eff24d3dd6 (patch)
treeef00c3ec8074ccb080b221c7d1dd4b3d03c8fd87 /uisimulator/x11/button-x11.c
parent5fc1b64ae051e454d2b3bf3a20be5d88937e55e7 (diff)
downloadrockbox-a6142ab7ab58f69a3f1a034db4bdf1eff24d3dd6.tar.gz
rockbox-a6142ab7ab58f69a3f1a034db4bdf1eff24d3dd6.zip
Finally, the archos directory sandbox works in the same way for both X11 and win32 simulators. Unfortunately, this breaks the VC++ compatibility. Also, the plugin API now supports DEBUGF. Last, but not least, we have a new plugin, vbrfix.rock.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4726 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/button-x11.c')
-rw-r--r--uisimulator/x11/button-x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/uisimulator/x11/button-x11.c b/uisimulator/x11/button-x11.c
index ae16e2e891..eae55318ad 100644
--- a/uisimulator/x11/button-x11.c
+++ b/uisimulator/x11/button-x11.c
@@ -172,7 +172,7 @@ int button_get_w_tmo(int ticks)
172 for(i=0; i< ticks; i++) { 172 for(i=0; i< ticks; i++) {
173 bits = get_raw_button(); 173 bits = get_raw_button();
174 if(!bits) 174 if(!bits)
175 x11_sleep(1); 175 sim_sleep(1);
176 else 176 else
177 break; 177 break;
178 } 178 }
@@ -193,14 +193,14 @@ int button_get(bool block)
193 do { 193 do {
194 bits = get_raw_button(); 194 bits = get_raw_button();
195 if(block && !bits) 195 if(block && !bits)
196 x11_sleep(HZ/10); 196 sim_sleep(HZ/10);
197 else 197 else
198 break; 198 break;
199 } while(1); 199 } while(1);
200 200
201 if(!block) 201 if(!block)
202 /* delay a bit */ 202 /* delay a bit */
203 x11_sleep(1); 203 sim_sleep(1);
204 204
205 return bits; 205 return bits;
206} 206}