mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-06 16:36:32 +02:00
fix missing #ifdef statement breaking compiling when not on linux
This commit is contained in:
@@ -612,6 +612,7 @@ int main(int argc, char * argv[])
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if defined (USE_SDL) && defined(LIN) && defined(SDL_VIDEO_DRIVER_X11)
|
||||||
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);
|
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);
|
||||||
SDL_VERSION(&sdl_wminfo.version);
|
SDL_VERSION(&sdl_wminfo.version);
|
||||||
SDL_GetWMInfo(&sdl_wminfo);
|
SDL_GetWMInfo(&sdl_wminfo);
|
||||||
@@ -619,6 +620,7 @@ int main(int argc, char * argv[])
|
|||||||
XA_CLIPBOARD = XInternAtom(sdl_wminfo.info.x11.display, "CLIPBOARD", 1);
|
XA_CLIPBOARD = XInternAtom(sdl_wminfo.info.x11.display, "CLIPBOARD", 1);
|
||||||
XA_TARGETS = XInternAtom(sdl_wminfo.info.x11.display, "TARGETS", 1);
|
XA_TARGETS = XInternAtom(sdl_wminfo.info.x11.display, "TARGETS", 1);
|
||||||
sdl_wminfo.info.x11.unlock_func();
|
sdl_wminfo.info.x11.unlock_func();
|
||||||
|
#endif
|
||||||
ui::Engine::Ref().g = new Graphics();
|
ui::Engine::Ref().g = new Graphics();
|
||||||
ui::Engine::Ref().Scale = scale;
|
ui::Engine::Ref().Scale = scale;
|
||||||
inputScale = 1.0f/float(scale);
|
inputScale = 1.0f/float(scale);
|
||||||
|
Reference in New Issue
Block a user