Skip to content

Commit

Permalink
Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for SDL_VID…
Browse files Browse the repository at this point in the history
…EO_FULLSCREEN_HEAD on X11.
  • Loading branch information
slouken committed Oct 10, 2009
1 parent c84fb6f commit 2d91b7a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions WhatsNew
Expand Up @@ -8,6 +8,9 @@ Version 1.0:
SDL_reinterpret_cast(type, expression)
SDL_static_cast(type, expression)

Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for
SDL_VIDEO_FULLSCREEN_HEAD on X11.

Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal
up/down events for Caps-Lock and Num-Lock keys.

Expand Down
5 changes: 4 additions & 1 deletion docs.html
Expand Up @@ -93,7 +93,10 @@ <H3> Unix Notes </H3>
SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL) returns the correct value with GLX_SGI_swap_control.
</P>
<P>
The SDL_VIDEO_FULLSCREEN_HEAD environment variable can be set to 0 to place fullscreen SDL windows on the first Xinerama screen.
Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for SDL_VIDEO_FULLSCREEN_HEAD on X11.
</P>
<P>
The SDL_VIDEO_FULLSCREEN_DISPLAY environment variable can be set to 0 to place fullscreen SDL windows on the first Xinerama screen.
</P>
<P>
Added the SDL_VIDEO_FBCON_ROTATION environment variable to control output orientation on the framebuffer console.
Expand Down
5 changes: 4 additions & 1 deletion src/video/x11/SDL_x11modes.c
Expand Up @@ -548,7 +548,10 @@ int X11_GetVideoModes(_THIS)
int w, h;
SDL_NAME(XineramaScreenInfo) *xinerama;

const char *variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD");
const char *variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_DISPLAY");
if ( !variable ) {
variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD");
}
if ( variable ) {
desired = SDL_atoi(variable);
}
Expand Down

0 comments on commit 2d91b7a

Please sign in to comment.