From 9199f4a492180c36da68b0b8a50b5bb6e5aae7c9 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 1 Nov 2000 21:36:35 +0000 Subject: [PATCH] DrawIconEx: when flags=0 use flags=DI_NORMAL instead. --- windows/cursoricon.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/windows/cursoricon.c b/windows/cursoricon.c index 9560b3a2d6a..561fa9953c8 100644 --- a/windows/cursoricon.c +++ b/windows/cursoricon.c @@ -1901,12 +1901,20 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon, HBITMAP hB_off = 0, hOld = 0; 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) FIXME_(icon)("Ignoring istep=%d\n", istep); if (flags & DI_COMPAT) 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. */ if (cxWidth == 0) {