changeset 33728:34e85af9e80f

Cosmetic: Rename symbolic constant MP_TRANSPARENT GMP_TRANSPARENT. Prefix GMP is used for GUI constants.
author ib
date Tue, 05 Jul 2011 11:01:24 +0000
parents 04b8bbbc8020
children ecee548a8f6b
files gui/skin/font.c gui/util/bitmap.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/font.c	Tue Jul 05 10:56:47 2011 +0000
+++ b/gui/skin/font.c	Tue Jul 05 11:01:24 2011 +0000
@@ -312,7 +312,7 @@
     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) {
--- a/gui/util/bitmap.h	Tue Jul 05 10:56:47 2011 +0000
+++ b/gui/util/bitmap.h	Tue Jul 05 11:01:24 2011 +0000
@@ -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;