Update SDL2 window backend
The window backends will probably be merged with the platform backends at some point.
This commit is contained in:
parent
4d8be3bc36
commit
8ff2f63416
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
|||
static SDL_Window *window;
|
||||
static SDL_GLContext context;
|
||||
|
||||
BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int screen_width, int screen_height, BOOL fullscreen)
|
||||
BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int *screen_width, int *screen_height, BOOL fullscreen)
|
||||
{
|
||||
puts("Available SDL2 video drivers:");
|
||||
|
||||
|
@ -38,7 +38,7 @@ BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int screen_widt
|
|||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
|
||||
#endif
|
||||
|
||||
window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, screen_width, screen_height, SDL_WINDOW_OPENGL);
|
||||
window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, *screen_width, *screen_height, SDL_WINDOW_OPENGL);
|
||||
|
||||
if (window != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue