# HG changeset patch # User Sam Lantinga # Date 1075327262 0 # Node ID d39b74b8583cffe6a6236ca6179fc124f055ac31 # Parent f9d0e03fc2ff1da453e46f5a34c81a1b750510ef Date: Wed, 28 Jan 2004 20:25:54 +0100 From: Thomas Jarosch Subject: Re: [SDL] DSPF_RBG15 in src/video/directfb/SDL_DirectFB_video.c In my local DirectFB 0.1.19 copy, DSPF_RGB15 is an alias for DSPF_ARGB1555. They seem to have it removed in DirectFB CVS. As DSPF_RGB15 was only an alias, the attached patch can safely be applied to SDL and won't brake older DirectFB versions. diff -r f9d0e03fc2ff -r d39b74b8583c src/video/directfb/SDL_DirectFB_video.c --- a/src/video/directfb/SDL_DirectFB_video.c Wed Jan 28 01:57:34 2004 +0000 +++ b/src/video/directfb/SDL_DirectFB_video.c Wed Jan 28 22:01:02 2004 +0000 @@ -250,7 +250,7 @@ if (format->Rmask == 0x7C00 && format->Gmask == 0x03E0 && format->Bmask == 0x001F) - return DSPF_RGB15; + return DSPF_ARGB1555; break; case 24: @@ -280,7 +280,7 @@ case 8: return DSPF_LUT8; case 15: - return DSPF_RGB15; + return DSPF_ARGB1555; case 16: return DSPF_RGB16; case 24: @@ -329,7 +329,7 @@ format->Amask = 0x000000FF; break; - case DSPF_RGB15: + case DSPF_ARGB1555: format->Rmask = 0x00007C00; format->Gmask = 0x000003E0; format->Bmask = 0x0000001F;