mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-15 18:17:19 +00:00
Let window be resizable
This commit is contained in:
parent
18efb35602
commit
2d9d06e267
1 changed files with 6 additions and 1 deletions
|
|
@ -506,6 +506,11 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
|
|||
case SDL_WINDOWEVENT_MOVED:
|
||||
window_x = evt.data1;
|
||||
window_y = evt.data2;
|
||||
break;
|
||||
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
||||
vid.realwidth = evt.data1;
|
||||
vid.realheight = evt.data2;
|
||||
break;
|
||||
}
|
||||
|
||||
if (FOCUSUNION == oldfocus) // No state change
|
||||
|
|
@ -1540,7 +1545,7 @@ INT32 VID_SetMode(INT32 modeNum)
|
|||
|
||||
static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
|
||||
{
|
||||
int flags = 0;
|
||||
uint32_t flags = SDL_WINDOW_RESIZABLE;
|
||||
|
||||
if (rendermode == render_none) // dedicated
|
||||
return SDL_TRUE; // Monster Iestyn -- not sure if it really matters what we return here tbh
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue