Commit 79e4af5a authored by Sam Lantinga's avatar Sam Lantinga

Fixed typo in DirectFB driver (thanks Frank!)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40819
parent 79e96585
...@@ -189,9 +189,9 @@ static DFBSurfacePixelFormat GetFormatForBpp (int bpp, IDirectFBDisplayLayer *la ...@@ -189,9 +189,9 @@ static DFBSurfacePixelFormat GetFormatForBpp (int bpp, IDirectFBDisplayLayer *la
return DSPF_UNKNOWN; return DSPF_UNKNOWN;
} }
static DFBEnumerationResult EnumModesCallback (unsigned int width, static DFBEnumerationResult EnumModesCallback (int width,
unsigned int height, int height,
unsigned int bpp, int bpp,
void *data) void *data)
{ {
SDL_VideoDevice *this = (SDL_VideoDevice *)data; SDL_VideoDevice *this = (SDL_VideoDevice *)data;
...@@ -206,8 +206,8 @@ static DFBEnumerationResult EnumModesCallback (unsigned int width, ...@@ -206,8 +206,8 @@ static DFBEnumerationResult EnumModesCallback (unsigned int width,
return DFENUM_CANCEL; return DFENUM_CANCEL;
} }
enumrect->r.w = width; enumrect->r.w = (Uint16)width;
enumrect->r.h = height; enumrect->r.h = (Uint16)height;
enumrect->next = enumlist; enumrect->next = enumlist;
enumlist = enumrect; enumlist = enumrect;
...@@ -1156,11 +1156,11 @@ int DirectFB_ShowWMCursor(_THIS, WMcursor *cursor) ...@@ -1156,11 +1156,11 @@ int DirectFB_ShowWMCursor(_THIS, WMcursor *cursor)
/* We can only hide or show the default cursor */ /* We can only hide or show the default cursor */
if ( cursor == NULL ) if ( cursor == NULL )
{ {
SetCursorOpacity(HIDDEN->layer, 0); HIDDEN->layer->SetCursorOpacity(HIDDEN->layer, 0x00);
} }
else else
{ {
SetCursorOpacity(HIDDEN->layer, 256); HIDDEN->layer->SetCursorOpacity(HIDDEN->layer, 0xFF);
} }
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment