sdl: fix mouseclick operations in "--nogui" mode (ie: zapper)
This commit is contained in:
parent
66374f271a
commit
4059428c2b
|
@ -720,15 +720,18 @@ GetMouseData(uint32 (&d)[3])
|
|||
t = SDL_GetMouseState(&x, &y);
|
||||
SDL_Event event;
|
||||
#ifdef _GTK
|
||||
// don't ask for gtk mouse info when in fullscreen
|
||||
// we can use sdl directly in fullscreen
|
||||
int fullscreen = 0;
|
||||
g_config->getOption("SDL.Fullscreen", &fullscreen);
|
||||
if(fullscreen == 0)
|
||||
if(noGui == 0)
|
||||
{
|
||||
x=GtkMouseData[0];
|
||||
y=GtkMouseData[1];
|
||||
t=GtkMouseData[2];
|
||||
// don't ask for gtk mouse info when in fullscreen
|
||||
// we can use sdl directly in fullscreen
|
||||
int fullscreen = 0;
|
||||
g_config->getOption("SDL.Fullscreen", &fullscreen);
|
||||
if(fullscreen == 0)
|
||||
{
|
||||
x=GtkMouseData[0];
|
||||
y=GtkMouseData[1];
|
||||
t=GtkMouseData[2];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue