diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-19 16:46:21 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-19 16:46:21 (GMT) |
| commit | b493788b2693314277a730b1938d3f4ab7be575c (patch) | |
| tree | 4048e9ebadcc31c74ab6d48b52cc1139451e5e95 /src/PowderToySDL.cpp | |
| parent | 7d5cb361f0f284fbc0ceff7cb8c94c2b0d4189eb (diff) | |
| download | powder-b493788b2693314277a730b1938d3f4ab7be575c.zip powder-b493788b2693314277a730b1938d3f4ab7be575c.tar.gz | |
fix missing #ifdef statement breaking compiling when not on linux
Diffstat (limited to 'src/PowderToySDL.cpp')
| -rw-r--r-- | src/PowderToySDL.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index d1eb62a..4b50a24 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -612,6 +612,7 @@ int main(int argc, char * argv[]) exit(-1); } #endif +#if defined (USE_SDL) && defined(LIN) && defined(SDL_VIDEO_DRIVER_X11) SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE); SDL_VERSION(&sdl_wminfo.version); 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_TARGETS = XInternAtom(sdl_wminfo.info.x11.display, "TARGETS", 1); sdl_wminfo.info.x11.unlock_func(); +#endif ui::Engine::Ref().g = new Graphics(); ui::Engine::Ref().Scale = scale; inputScale = 1.0f/float(scale); |
