Ignore:
Timestamp:
Jun 23, 1999, 9:45:02 PM (26 years ago)
Author:
achimha
Message:

updated comctl32 with the latest WINE bugfixes. Listview is much better now and tab control doesn't have the wrong color anymore. Many small improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/imagelist.c

    r94 r164  
    1 /* $Id: imagelist.c,v 1.3 1999-06-10 16:21:59 achimha Exp $ */
     1/* $Id: imagelist.c,v 1.4 1999-06-23 19:45:00 achimha Exp $ */
    22/*
    33 *  ImageList implementation
     
    12071207    HICON  hIcon;
    12081208    HDC    hdcSrc, hdcDst;
    1209     INT    nWidth, nHeight;
    12101209
    12111210    if ((himl == NULL) || (i < 0) || (i >= himl->cCurImage))
    12121211        return 0;
    12131212
    1214     nWidth = GetSystemMetrics (SM_CXICON);
    1215     nHeight = GetSystemMetrics (SM_CYICON);
    1216 
    12171213    hdcSrc = CreateCompatibleDC(0);
    12181214    hdcDst = CreateCompatibleDC(0);
    12191215
    12201216    ii.fIcon = TRUE;
    1221     ii.xHotspot = nWidth / 2;
    1222     ii.yHotspot = nHeight / 2;
    1223     ii.hbmMask  = CreateCompatibleBitmap (hdcDst, nWidth, nHeight);
    1224     ii.hbmColor = CreateCompatibleBitmap (hdcDst, nWidth, nHeight);
     1217    ii.hbmMask  = CreateCompatibleBitmap (hdcDst, himl->cx, himl->cy);
     1218    ii.hbmColor = CreateCompatibleBitmap (hdcDst, himl->cx, himl->cy);
    12251219
    12261220
     
    12291223    if (himl->hbmMask) {
    12301224        SelectObject (hdcSrc, himl->hbmMask);
    1231         BitBlt (hdcDst, 0, 0, nWidth, nHeight,
     1225        BitBlt (hdcDst, 0, 0, himl->cx, himl->cy,
    12321226                  hdcSrc, i * himl->cx, 0, SRCCOPY);
    12331227    }
    12341228    else
    1235         PatBlt (hdcDst, 0, 0, nWidth, nHeight, BLACKNESS);
     1229        PatBlt (hdcDst, 0, 0, himl->cx, himl->cy, BLACKNESS);
    12361230
    12371231    /* draw image*/
    12381232    SelectObject (hdcDst, ii.hbmColor);
    12391233    SelectObject (hdcSrc, himl->hbmImage);
    1240     BitBlt (hdcDst, 0, 0, nWidth, nHeight,
     1234    BitBlt (hdcDst, 0, 0, himl->cx, himl->cy,
    12411235              hdcSrc, i * himl->cx, 0, SRCCOPY);
    12421236
Note: See TracChangeset for help on using the changeset viewer.