Browse Source

sdl: fix typos

pull/2/head
Alibek Omarov 6 years ago
parent
commit
413882a8d5
  1. 2
      engine/platform/sdl/events.c
  2. 2
      engine/platform/sdl/vid_sdl.c

2
engine/platform/sdl/events.c

@ -388,7 +388,7 @@ static void SDLash_EventFilter( SDL_Event *event ) @@ -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:

2
engine/platform/sdl/vid_sdl.c

@ -777,7 +777,7 @@ int GL_GetAttribute( int attr, int *val ) @@ -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

Loading…
Cancel
Save