[MPlayer-cvslog] r36991 - trunk/gui/win32/skinload.c

ib subversion at mplayerhq.hu
Tue Mar 11 13:48:59 CET 2014


Author: ib
Date: Tue Mar 11 13:48:59 2014
New Revision: 36991

Log:
Fix bug with hpotmeter/vpotmeter in the Win32 GUI.

Allow a hpotmeter/vpotmeter without button.

(The rendering should be fixed, actually, because
it only renders the button but not the phases image.)

Modified:
   trunk/gui/win32/skinload.c

Modified: trunk/gui/win32/skinload.c
==============================================================================
--- trunk/gui/win32/skinload.c	Mon Mar 10 19:03:55 2014	(r36990)
+++ trunk/gui/win32/skinload.c	Tue Mar 11 13:48:59 2014	(r36991)
@@ -392,6 +392,12 @@ static void addwidget(skin_t *skin, wind
             mywidget->width = mywidget->wwidth;
             mywidget->height = mywidget->wheight;
         }
+        if (mywidget->bitmap[0] == NULL || mywidget->width == 0 || mywidget->height == 0)
+        {
+            mywidget->bitmap[0] = mywidget->bitmap[1];
+            mywidget->width = mywidget->wwidth;
+            mywidget->height = mywidget->wheight;
+        }
         findnextstring(temp, desc, &base);
         mywidget->msg = evNone;
         for (i=0; i<evBoxs; i++)


More information about the MPlayer-cvslog mailing list