changeset 4623:10175d54adf4

Depend on XRender version 0.10 or above and XFixes version 2.0 or above. Moved these dependency checks into CheckXRender() and CheckXFixes().
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Wed, 28 Jul 2010 15:33:28 +0530
parents 453712fd2016
children b70b99ab75b8
files src/video/x11/SDL_x11render.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11render.c	Wed Jul 28 15:13:16 2010 +0530
+++ b/src/video/x11/SDL_x11render.c	Wed Jul 28 15:33:28 2010 +0530
@@ -204,6 +204,10 @@
         return SDL_FALSE;
     }
 
+    if (major != 0 || minor < 10) {
+        return SDL_FALSE;
+    }
+
     return SDL_TRUE;
 }
 #endif
@@ -230,6 +234,10 @@
         return SDL_FALSE;
     }
 
+    if (major < 2) {
+        return SDL_FALSE;
+    }
+
     return SDL_TRUE;
 }
 #endif
@@ -397,8 +405,7 @@
 #ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE
     if (CheckXDamage(data->display, &major, &minor)) {
         if (CheckXFixes(data->display, &major, &minor)) {
-            if (major >= 2)
-                data->use_xdamage = SDL_TRUE;
+            data->use_xdamage = SDL_TRUE;
         }
     }
 #endif