diff --git a/engine/platform/sdl/events.c b/engine/platform/sdl/events.c index c4f07255..28697412 100644 --- a/engine/platform/sdl/events.c +++ b/engine/platform/sdl/events.c @@ -388,7 +388,7 @@ static void SDLash_EventFilter( SDL_Event *event ) if( !vid_fullscreen->value ) { Cvar_SetValue( "_window_xpos", (float)event->window.data1 ); - Cvar_SetValue( "_window_ypos", (float)event->window.data1 ); + Cvar_SetValue( "_window_ypos", (float)event->window.data2 ); } break; case SDL_WINDOWEVENT_MINIMIZED: diff --git a/engine/platform/sdl/vid_sdl.c b/engine/platform/sdl/vid_sdl.c index b55d5c03..80c58124 100644 --- a/engine/platform/sdl/vid_sdl.c +++ b/engine/platform/sdl/vid_sdl.c @@ -777,7 +777,7 @@ int GL_GetAttribute( int attr, int *val ) #if SDL_VERSION_ATLEAST( 2, 0, 4 ) MAP_REF_API_ATTRIBUTE_TO_SDL( GL_CONTEXT_RELEASE_BEHAVIOR ); #endif -#if SDL_VERISON_ATLEAST( 2, 0, 6 ) +#if SDL_VERSION_ATLEAST( 2, 0, 6 ) MAP_REF_API_ATTRIBUTE_TO_SDL( GL_CONTEXT_RESET_NOTIFICATION ); MAP_REF_API_ATTRIBUTE_TO_SDL( GL_CONTEXT_NO_ERROR ); #endif