diff options
Diffstat (limited to 'src/libjin/Graphics/Window.cpp')
-rw-r--r-- | src/libjin/Graphics/Window.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libjin/Graphics/Window.cpp b/src/libjin/Graphics/Window.cpp index f4ca9aa..4e168dc 100644 --- a/src/libjin/Graphics/Window.cpp +++ b/src/libjin/Graphics/Window.cpp @@ -24,8 +24,8 @@ namespace graphics return false; const Setting* setting = (Setting*)s; - width = setting->width; - height = setting->height; + size.x = setting->width; + size.y = setting->height; fps = setting->fps; bool vsync = setting->vsync; const char* title = setting->title; @@ -59,7 +59,7 @@ namespace graphics if (setting->fullscreen) flag |= SDL_WINDOW_FULLSCREEN; if (setting->resizable) flag |= SDL_WINDOW_RESIZABLE; - wnd = SDL_CreateWindow(title, wx, wy, width, height, flag); + wnd = SDL_CreateWindow(title, wx, wy, size.x, size.y, flag); if (wnd == NULL) return false; ctx = SDL_GL_CreateContext(wnd); |