Skip to content

Commit

Permalink
Fix to allow SDL compiled under XFree v4 to work with XFree v3 xservers.
Browse files Browse the repository at this point in the history
Contributed by Jarek Sobieszek
  • Loading branch information
Sam Lantinga committed Jul 7, 2001
1 parent c56dbd3 commit 21ccfba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/video/x11/SDL_x11gamma.c
Expand Up @@ -37,7 +37,7 @@ static char rcsid =
static int X11_SetGammaNoLock(_THIS, float red, float green, float blue)
{
#ifdef XFREE86_VMGAMMA
if (use_vidmode) {
if (use_vidmode >= 2) {
XF86VidModeGamma gamma;
Bool succeeded;

Expand Down Expand Up @@ -98,7 +98,7 @@ int X11_SetVidModeGamma(_THIS, float red, float green, float blue)
static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue)
{
#ifdef XFREE86_VMGAMMA
if (use_vidmode) {
if (use_vidmode >= 2) {
XF86VidModeGamma gamma;
if (XVidMode(GetGamma, (SDL_Display, SDL_Screen, &gamma))) {
*red = gamma.red;
Expand Down
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11modes.c
Expand Up @@ -271,7 +271,7 @@ int X11_GetVideoModes(_THIS)
}
XFree(modes);

use_vidmode = 1;
use_vidmode = vm_major;
save_mode(this);
}
#endif /* XFREE86_VM */
Expand Down

0 comments on commit 21ccfba

Please sign in to comment.