mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-25 19:43:22 +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:
|
case SDL_WINDOWEVENT_MOVED:
|
||||||
window_x = evt.data1;
|
window_x = evt.data1;
|
||||||
window_y = evt.data2;
|
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
|
if (FOCUSUNION == oldfocus) // No state change
|
||||||
|
|
@ -1540,7 +1545,7 @@ INT32 VID_SetMode(INT32 modeNum)
|
||||||
|
|
||||||
static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
|
static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
|
||||||
{
|
{
|
||||||
int flags = 0;
|
uint32_t flags = SDL_WINDOW_RESIZABLE;
|
||||||
|
|
||||||
if (rendermode == render_none) // dedicated
|
if (rendermode == render_none) // dedicated
|
||||||
return SDL_TRUE; // Monster Iestyn -- not sure if it really matters what we return here tbh
|
return SDL_TRUE; // Monster Iestyn -- not sure if it really matters what we return here tbh
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue