DrawIconEx: when flags=0 use flags=DI_NORMAL instead.

This commit is contained in:
Marcus Meissner 2000-11-01 21:36:35 +00:00 committed by Alexandre Julliard
parent fa9d4e4f50
commit 9199f4a492

View file

@ -1901,12 +1901,20 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
HBITMAP hB_off = 0, hOld = 0; HBITMAP hB_off = 0, hOld = 0;
if (!ptr) return FALSE; if (!ptr) return FALSE;
TRACE_(icon)("(hdc=%x,pos=%d.%d,hicon=%x,extend=%d.%d,istep=%d,br=%x,flags=0x%08x)\n",
hdc,x0,y0,hIcon,cxWidth,cyWidth,istep,hbr,flags
);
if (istep) if (istep)
FIXME_(icon)("Ignoring istep=%d\n", istep); FIXME_(icon)("Ignoring istep=%d\n", istep);
if (flags & DI_COMPAT) if (flags & DI_COMPAT)
FIXME_(icon)("Ignoring flag DI_COMPAT\n"); FIXME_(icon)("Ignoring flag DI_COMPAT\n");
if (!flags) {
FIXME_(icon)("no flags set? setting to DI_NORMAL\n");
flags = DI_NORMAL;
}
/* Calculate the size of the destination image. */ /* Calculate the size of the destination image. */
if (cxWidth == 0) if (cxWidth == 0)
{ {