# HG changeset patch # User ib # Date 1394542139 0 # Node ID 5616bd62fa26e09d3eb660efb669a4fd9a406441 # Parent 669e2f7fb150d2246685f06be444b7b99abdc41f 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.) diff -r 669e2f7fb150 -r 5616bd62fa26 gui/win32/skinload.c --- 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