[MPlayer-cvslog] r33816 - in trunk/gui: skin/font.c util/bitmap.h

ib subversion at mplayerhq.hu
Tue Jul 5 13:01:24 CEST 2011


Author: ib
Date: Tue Jul  5 13:01:24 2011
New Revision: 33816

Log:
Cosmetic: Rename symbolic constant MP_TRANSPARENT GMP_TRANSPARENT.

Prefix GMP is used for GUI constants.

Modified:
   trunk/gui/skin/font.c
   trunk/gui/util/bitmap.h

Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c	Tue Jul  5 12:56:47 2011	(r33815)
+++ trunk/gui/skin/font.c	Tue Jul  5 13:01:24 2011	(r33816)
@@ -312,7 +312,7 @@ guiImage *fntRender(wItem *item, int px,
     ibuf = (uint32_t *)Fonts[id]->Bitmap.Image;
 
     for (i = 0; i < item->Bitmap.ImageSize / 4; i++)
-        obuf[i] = MP_TRANSPARENT;
+        obuf[i] = GMP_TRANSPARENT;
 
     if (tw <= iw) {
         switch (item->align) {

Modified: trunk/gui/util/bitmap.h
==============================================================================
--- trunk/gui/util/bitmap.h	Tue Jul  5 12:56:47 2011	(r33815)
+++ trunk/gui/util/bitmap.h	Tue Jul  5 13:01:24 2011	(r33816)
@@ -19,11 +19,11 @@
 #ifndef MPLAYER_GUI_BITMAP_H
 #define MPLAYER_GUI_BITMAP_H
 
-#define MP_TRANSPARENT 0xffff00ff   // transparent color (opaque fuchsia/magenta)
+#define GMP_TRANSPARENT 0xffff00ff   // transparent color (opaque fuchsia/magenta)
 #define ALPHA_OPAQUE   0xff000000
 
 // for legacy reasons, we must treat all kind of fuchsia/magenta as transparent
-#define IS_TRANSPARENT(c) ((ALPHA_OPAQUE | (c)) == MP_TRANSPARENT)
+#define IS_TRANSPARENT(c) ((ALPHA_OPAQUE | (c)) == GMP_TRANSPARENT)
 
 typedef struct {
     unsigned long Width;


More information about the MPlayer-cvslog mailing list