[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: PATCH: ImageList_LoadImageW (comctl32)
From:       Tony Lambregts <tony_lambregts () telusplanet ! net>
Date:       2002-05-30 0:24:06
[Download RAW message or body]

Sander van Leeuwen wrote:

>Changelog:
>- Match behaviour of ImageList_LoadImageA wrt cx parameter (when set to zero)
>
>Author: Sander van Leeuwen/Odin (sandervl@xs4all.nl)
>
>
>--- imagelist.c	Wed May 29 17:31:28 2002
>+++ imagelist.co	Wed May 29 17:32:38 2002
>@@ -1907,19 +1907,6 @@
>     if (uType == IMAGE_BITMAP) {
>         BITMAP bmp;
>         GetObjectA (handle, sizeof(BITMAP), &bmp);
>-
>-        /* To match windows behavior, if cx is set to zero and
>-         the flag DI_DEFAULTSIZE is specified, cx becomes the
>-         system metric value for icons. If the flag is not specified
>-         the function sets the size to the height of the bitmap */
>-        if (cx == 0)
>-        {
>-            if (uFlags & DI_DEFAULTSIZE)
>-                cx = GetSystemMetrics (SM_CXICON);
>-            else
>-                cx = bmp.bmHeight;
>-        }
>-
>         nImageCount = bmp.bmWidth / cx;
> 
>         himl = ImageList_Create (cx, bmp.bmHeight, ILC_MASK | ILC_COLOR,
>
>
>
>
>  
>
Seems to me that you got this patch backward.  - should +


Tony Lambregts




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic