diff src/video/x11/SDL_x11modes.c @ 91:e85e03f195b4

From: "Markus F.X.J. Oberhumer" Subject: SDL CVS patches below you will find some small patches against the current SDL CVS. It adresses these things: 1) Use "&" instead of "%" in some cases. For negative signed integers (x % 8) is not always (x & 7), and the compiler can produce slightly faster code when using "&" here. 2) Some const issues.
author Sam Lantinga <slouken@lokigames.com>
date Sat, 07 Jul 2001 20:20:17 +0000
parents ee1f71c10889
children 8a5aff5c1294
line wrap: on
line diff
--- a/src/video/x11/SDL_x11modes.c	Sat Jul 07 08:08:42 2001 +0000
+++ b/src/video/x11/SDL_x11modes.c	Sat Jul 07 20:20:17 2001 +0000
@@ -78,8 +78,8 @@
 #ifdef XFREE86_VM
 static int cmpmodes(const void *va, const void *vb)
 {
-    XF86VidModeModeInfo *a = *(XF86VidModeModeInfo**)va;
-    XF86VidModeModeInfo *b = *(XF86VidModeModeInfo**)vb;
+    const XF86VidModeModeInfo *a = *(const XF86VidModeModeInfo**)va;
+    const XF86VidModeModeInfo *b = *(const XF86VidModeModeInfo**)vb;
     if(a->hdisplay > b->hdisplay)
         return -1;
     return b->vdisplay - a->vdisplay;