diff --git a/configure.in b/configure.in index b28884685..fd42e63ce 100644 --- a/configure.in +++ b/configure.in @@ -746,7 +746,7 @@ CheckDirectFB() AC_MSG_ERROR([*** pkg-config too old; version 0.5 or better required.]) fi - DIRECTFB_REQUIRED_VERSION=0.9.7 + DIRECTFB_REQUIRED_VERSION=0.9.8 if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` diff --git a/src/video/directfb/SDL_DirectFB_video.c b/src/video/directfb/SDL_DirectFB_video.c index 0a4da6b0a..8050eb00a 100644 --- a/src/video/directfb/SDL_DirectFB_video.c +++ b/src/video/directfb/SDL_DirectFB_video.c @@ -290,7 +290,7 @@ static int DFBToSDLPixelFormat (DFBSurfacePixelFormat pixelformat, SDL_PixelForm return -1; } - format->BitsPerPixel = BITS_PER_PIXEL(pixelformat); + format->BitsPerPixel = DFB_BITS_PER_PIXEL(pixelformat); return 0; }