Mercurial > mplayer.hg
comparison gui/win32/skinload.c @ 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 | 87e6a09a07a7 |
children | 737e2a3b9a5d |
comparison
equal
deleted
inserted
replaced
36894:669e2f7fb150 | 36895:5616bd62fa26 |
---|---|
390 skin_legacy("potmeter", "hpotmeter"); | 390 skin_legacy("potmeter", "hpotmeter"); |
391 | 391 |
392 mywidget->width = mywidget->wwidth; | 392 mywidget->width = mywidget->wwidth; |
393 mywidget->height = mywidget->wheight; | 393 mywidget->height = mywidget->wheight; |
394 } | 394 } |
395 if (mywidget->bitmap[0] == NULL || mywidget->width == 0 || mywidget->height == 0) | |
396 { | |
397 mywidget->bitmap[0] = mywidget->bitmap[1]; | |
398 mywidget->width = mywidget->wwidth; | |
399 mywidget->height = mywidget->wheight; | |
400 } | |
395 findnextstring(temp, desc, &base); | 401 findnextstring(temp, desc, &base); |
396 mywidget->msg = evNone; | 402 mywidget->msg = evNone; |
397 for (i=0; i<evBoxs; i++) | 403 for (i=0; i<evBoxs; i++) |
398 { | 404 { |
399 if(!strcmp(temp, evNames[i].name)) | 405 if(!strcmp(temp, evNames[i].name)) |