diff gui/mplayer/gui_common.c @ 33129:5f3171d4d7a4

Define the transparent color as a macro. Additionally, remove it as parameter from Convert32to1(), because there is only this single one.
author ib
date Mon, 04 Apr 2011 19:12:31 +0000
parents 9566100d88a1
children 49ca38147d1f
line wrap: on
line diff
--- a/gui/mplayer/gui_common.c	Mon Apr 04 18:51:06 2011 +0000
+++ b/gui/mplayer/gui_common.c	Mon Apr 04 19:12:31 2011 +0000
@@ -331,7 +331,7 @@
         for (ix = x; ix < (int)(x + bf->Width); ix++) {
             tmp = drw[i++];
 
-            if (tmp != 0x00ff00ff)
+            if (tmp != TRANSPARENT)
                 buf[iy * image_width + ix] = tmp;
         }
 #else
@@ -341,7 +341,7 @@
         for (ix = x; ix < (int)(x + bf->Width); ix++) {
             tmp = drw[i++];
 
-            if (tmp != 0x00ff00ff)
+            if (tmp != TRANSPARENT)
                 buf[yc + ix] = tmp;
         }
 
@@ -369,7 +369,7 @@
         for (ix = x; ix < (int)(x + w); ix++) {
             tmp = drw[i++];
 
-            if (tmp != 0x00ff00ff)
+            if (tmp != TRANSPARENT)
                 buf[iy * image_width + ix] = tmp;
         }