Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_modes.c @ 3037:490f3e4fe753
Added DFB_VERSION_ATLEAST macro
First attempt at replacing MakeSubSurface for pre 1.2.0 ==> Scaling not yet working
author | Couriersud <couriersud@arcor.de> |
---|---|
date | Tue, 13 Jan 2009 21:17:38 +0000 |
parents | d72a0dd80e8b |
children | 4b594623401b |
comparison
equal
deleted
inserted
replaced
3036:76a1692fcec5 | 3037:490f3e4fe753 |
---|---|
333 | 333 |
334 display.desktop_mode = mode; | 334 display.desktop_mode = mode; |
335 display.current_mode = mode; | 335 display.current_mode = mode; |
336 display.driverdata = dispdata; | 336 display.driverdata = dispdata; |
337 | 337 |
338 #if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 2) | 338 #if (DFB_VERSION_ATLEAST(1,2,0)) |
339 dlc.flags = | 339 dlc.flags = |
340 DLCONF_WIDTH | DLCONF_HEIGHT | DLCONF_PIXELFORMAT | | 340 DLCONF_WIDTH | DLCONF_HEIGHT | DLCONF_PIXELFORMAT | |
341 DLCONF_OPTIONS; | 341 DLCONF_OPTIONS; |
342 ret = layer->SetConfiguration(layer, &dlc); | 342 ret = layer->SetConfiguration(layer, &dlc); |
343 #endif | 343 #endif |
436 } | 436 } |
437 | 437 |
438 SDL_DFB_DEBUG("Trace\n"); | 438 SDL_DFB_DEBUG("Trace\n"); |
439 config.flags &= ~fail; | 439 config.flags &= ~fail; |
440 SDL_DFB_CHECKERR(data->layer->SetConfiguration(data->layer, &config)); | 440 SDL_DFB_CHECKERR(data->layer->SetConfiguration(data->layer, &config)); |
441 #if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 2) | 441 #if (DFB_VERSION_ATLEAST(1,2,0)) |
442 /* Need to call this twice ! */ | 442 /* Need to call this twice ! */ |
443 SDL_DFB_CHECKERR(data->layer->SetConfiguration(data->layer, &config)); | 443 SDL_DFB_CHECKERR(data->layer->SetConfiguration(data->layer, &config)); |
444 #endif | 444 #endif |
445 | 445 |
446 /* Double check */ | 446 /* Double check */ |