mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 10:45:24 +00:00
[UXTHEME] Apply Wine commit b12f73a by Mark Harmstone: Assume imagecount to be 1 if unspecified.
svn path=/trunk/; revision=67406
This commit is contained in:
parent
e21ccdffe2
commit
72ac5bdaef
|
@ -241,6 +241,9 @@ static HRESULT UXTHEME_LoadImage(HTHEME hTheme, HDC hdc, int iPartId, int iState
|
|||
|
||||
imagenum = max (min (imagecount, iStateId), 1) - 1;
|
||||
GetObjectW(*hBmp, sizeof(bmp), &bmp);
|
||||
|
||||
if(imagecount < 1) imagecount = 1;
|
||||
|
||||
if(imagelayout == IL_VERTICAL) {
|
||||
int height = bmp.bmHeight/imagecount;
|
||||
bmpRect->left = 0;
|
||||
|
|
Loading…
Reference in a new issue