comparison src/video/gem/SDL_gemevents.c @ 928:6c87754f324c

Forgot to initialize maximum position for mouse
author Patrice Mandin <patmandin@gmail.com>
date Tue, 10 Aug 2004 20:58:47 +0000
parents c5689bd09eaa
children d9209754ebee
comparison
equal deleted inserted replaced
927:c5689bd09eaa 928:6c87754f324c
300 static short prevmousex=0, prevmousey=0, prevmouseb=0; 300 static short prevmousex=0, prevmousey=0, prevmouseb=0;
301 short x2, y2, w2, h2; 301 short x2, y2, w2, h2;
302 302
303 /* Retrieve window coords, and generate mouse events accordingly */ 303 /* Retrieve window coords, and generate mouse events accordingly */
304 x2 = y2 = 0; 304 x2 = y2 = 0;
305 w2 = VDI_w;
306 h2 = VDI_h;
305 if ((!GEM_fullscreen) && (GEM_handle>=0)) { 307 if ((!GEM_fullscreen) && (GEM_handle>=0)) {
306 wind_get (GEM_handle, WF_WORKXYWH, &x2, &y2, &w2, &h2); 308 wind_get (GEM_handle, WF_WORKXYWH, &x2, &y2, &w2, &h2);
307 309
308 /* Do not generate mouse button event if out of window working area */ 310 /* Do not generate mouse button event if out of window working area */
309 if ((mx<x2) || (mx>=x2+w2) || (my<y2) || (my>=y2+h2)) { 311 if ((mx<x2) || (mx>=x2+w2) || (my<y2) || (my>=y2+h2)) {