From e72188433348c270a54879da9f086f1b527b580f Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 7 Sep 2018 13:30:44 +0800 Subject: *update --- src/libjin/Graphics/Window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libjin/Graphics/Window.cpp') diff --git a/src/libjin/Graphics/Window.cpp b/src/libjin/Graphics/Window.cpp index ede202e..3eb76ad 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; - size.x = setting->width; - size.y = setting->height; + size.w = setting->width; + size.h = 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, size.x, size.y, flag); + wnd = SDL_CreateWindow(title, wx, wy, size.w, size.h, flag); if (wnd == NULL) return false; ctx = SDL_GL_CreateContext(wnd); -- cgit v1.1-26-g67d0