diff src/video/directfb/SDL_DirectFB_video.c @ 790:d39b74b8583c

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.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 28 Jan 2004 22:01:02 +0000
parents b8d311d90021
children 7ac8ec80ea68
line wrap: on
line diff
--- 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;