changeset 36895:5616bd62fa26

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.)
author ib
date Tue, 11 Mar 2014 12:48:59 +0000
parents 669e2f7fb150
children 737e2a3b9a5d
files gui/win32/skinload.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/skinload.c	Mon Mar 10 18:03:55 2014 +0000
+++ b/gui/win32/skinload.c	Tue Mar 11 12:48:59 2014 +0000
@@ -392,6 +392,12 @@
             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++)