--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402537
This commit is contained in:
Sam Lantinga 2007-07-15 16:59:16 +00:00
parent cfcb0787d2
commit 6793a28d06
3 changed files with 6 additions and 7 deletions

View file

@ -77,7 +77,7 @@ GEM_PumpEvents(_THIS)
wind_get(GEM_handle, WF_WORKXYWH, &x2, &y2, &w2, &h2); wind_get(GEM_handle, WF_WORKXYWH, &x2, &y2, &w2, &h2);
event_mask |= MU_M1; event_mask |= MU_M1;
mouse_event = ((SDL_GetAppState() & SDL_APPMOUSEFOCUS) == mouse_event = ((SDL_GetAppState() & SDL_APPMOUSEFOCUS) ==
SDL_APPMOUSEFOCUS) ? MO_LEAVE : MO_ENTER; SDL_APPMOUSEFOCUS) ? MO_LEAVE : MO_ENTER;
} }
resultat = evnt_multi(event_mask, resultat = evnt_multi(event_mask,
@ -107,7 +107,7 @@ GEM_PumpEvents(_THIS)
if (this->input_grab == SDL_GRAB_OFF) { if (this->input_grab == SDL_GRAB_OFF) {
/* Switch mouse focus state */ /* Switch mouse focus state */
SDL_PrivateAppActive((mouse_event == MO_ENTER), SDL_PrivateAppActive((mouse_event == MO_ENTER),
SDL_APPMOUSEFOCUS); SDL_APPMOUSEFOCUS);
} }
GEM_CheckMouseMode(this); GEM_CheckMouseMode(this);
} }

View file

@ -36,10 +36,9 @@ GEM_InitModes(_THIS)
/* read vdi bpp, rmask, gmask, bmask, amask */ /* read vdi bpp, rmask, gmask, bmask, amask */
mode.format = mode.format = SDL_MasksToPixelFormatEnum(bpp, Rmask, Gmask, Bmask, Amask);
SDL_MasksToPixelFormatEnum(bpp, Rmask, Gmask, Bmask, Amask); mode.w = 0 /* vdi width */ ;
mode.w = 0 /* vdi width */; mode.h = 0 /* vdi height */ ;
mode.h = 0 /* vdi height */;
mode.refresh_rate = 0; mode.refresh_rate = 0;
mode.driverdata = NULL; mode.driverdata = NULL;

View file

@ -151,7 +151,7 @@ GEM_VideoInit(_THIS)
data->wfeatures = 0; data->wfeatures = 0;
if (appl_getinfo(AES_WINDOW, &ap_gout[0], &ap_gout[1], &ap_gout[2], if (appl_getinfo(AES_WINDOW, &ap_gout[0], &ap_gout[1], &ap_gout[2],
&ap_gout[3]) == 0) { &ap_gout[3]) == 0) {
data->wfeatures = ap_gout[0]; data->wfeatures = ap_gout[0];
} }
} }