comparison src/video/directfb/SDL_DirectFB_video.c @ 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 d39b74b8583c
children 8762a202f121
comparison
equal deleted inserted replaced
817:700c9c5c923b 818:7ac8ec80ea68
187 } 187 }
188 188
189 return DSPF_UNKNOWN; 189 return DSPF_UNKNOWN;
190 } 190 }
191 191
192 static DFBEnumerationResult EnumModesCallback (unsigned int width, 192 static DFBEnumerationResult EnumModesCallback (int width,
193 unsigned int height, 193 int height,
194 unsigned int bpp, 194 int bpp,
195 void *data) 195 void *data)
196 { 196 {
197 SDL_VideoDevice *this = (SDL_VideoDevice *)data; 197 SDL_VideoDevice *this = (SDL_VideoDevice *)data;
198 struct DirectFBEnumRect *enumrect; 198 struct DirectFBEnumRect *enumrect;
199 199
200 HIDDEN->nummodes++; 200 HIDDEN->nummodes++;
204 { 204 {
205 SDL_OutOfMemory(); 205 SDL_OutOfMemory();
206 return DFENUM_CANCEL; 206 return DFENUM_CANCEL;
207 } 207 }
208 208
209 enumrect->r.w = width; 209 enumrect->r.w = (Uint16)width;
210 enumrect->r.h = height; 210 enumrect->r.h = (Uint16)height;
211 enumrect->next = enumlist; 211 enumrect->next = enumlist;
212 212
213 enumlist = enumrect; 213 enumlist = enumrect;
214 214
215 return DFENUM_OK; 215 return DFENUM_OK;
1154 int DirectFB_ShowWMCursor(_THIS, WMcursor *cursor) 1154 int DirectFB_ShowWMCursor(_THIS, WMcursor *cursor)
1155 { 1155 {
1156 /* We can only hide or show the default cursor */ 1156 /* We can only hide or show the default cursor */
1157 if ( cursor == NULL ) 1157 if ( cursor == NULL )
1158 { 1158 {
1159 SetCursorOpacity(HIDDEN->layer, 0); 1159 HIDDEN->layer->SetCursorOpacity(HIDDEN->layer, 0x00);
1160 } 1160 }
1161 else 1161 else
1162 { 1162 {
1163 SetCursorOpacity(HIDDEN->layer, 256); 1163 HIDDEN->layer->SetCursorOpacity(HIDDEN->layer, 0xFF);
1164 } 1164 }
1165 return 1; 1165 return 1;
1166 } 1166 }
1167 1167
1168 void DirectFB_FinalQuit(void) 1168 void DirectFB_FinalQuit(void)