changeset 818:7ac8ec80ea68

Fixed typo in DirectFB driver (thanks Frank!)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 13 Feb 2004 18:39:01 +0000
parents 700c9c5c923b
children 1318a8b87f48
files src/video/directfb/SDL_DirectFB_video.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_video.c	Fri Feb 13 18:01:22 2004 +0000
+++ b/src/video/directfb/SDL_DirectFB_video.c	Fri Feb 13 18:39:01 2004 +0000
@@ -189,10 +189,10 @@
   return DSPF_UNKNOWN;
 }
 
-static DFBEnumerationResult EnumModesCallback (unsigned int  width,
-                                               unsigned int  height,
-                                               unsigned int  bpp,
-                                               void         *data)
+static DFBEnumerationResult EnumModesCallback (int  width,
+                                               int  height,
+                                               int  bpp,
+                                               void *data)
 {
   SDL_VideoDevice *this = (SDL_VideoDevice *)data;
   struct DirectFBEnumRect *enumrect;
@@ -206,8 +206,8 @@
       return DFENUM_CANCEL;
     }
 
-  enumrect->r.w  = width;
-  enumrect->r.h  = height;
+  enumrect->r.w  = (Uint16)width;
+  enumrect->r.h  = (Uint16)height;
   enumrect->next = enumlist;
 
   enumlist = enumrect;
@@ -1156,11 +1156,11 @@
   /* We can only hide or show the default cursor */
   if ( cursor == NULL )
     {
-      SetCursorOpacity(HIDDEN->layer, 0);
+      HIDDEN->layer->SetCursorOpacity(HIDDEN->layer, 0x00);
     }
     else
     {
-      SetCursorOpacity(HIDDEN->layer, 256);
+      HIDDEN->layer->SetCursorOpacity(HIDDEN->layer, 0xFF);
     }
   return 1;
 }