Commit 5f89960a authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

comctl32: Remove a redundant variable.

parent a27ae792
...@@ -116,7 +116,7 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c ...@@ -116,7 +116,7 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c
{ {
HDC hdcBitmap; HDC hdcBitmap;
HBITMAP hbmNewBitmap, hbmNull; HBITMAP hbmNewBitmap, hbmNull;
INT nNewWidth, nNewCount; INT nNewCount;
SIZE sz; SIZE sz;
if ((himl->cCurImage + nImageCount <= himl->cMaxImage) if ((himl->cCurImage + nImageCount <= himl->cMaxImage)
...@@ -125,17 +125,16 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c ...@@ -125,17 +125,16 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c
if (cy == 0) cy = himl->cy; if (cy == 0) cy = himl->cy;
nNewCount = himl->cCurImage + nImageCount + himl->cGrow; nNewCount = himl->cCurImage + nImageCount + himl->cGrow;
nNewWidth = nNewCount * himl->cx;
TRACE("Create expanded bitmaps : himl=%p x=%d y=%d count=%d\n", himl, nNewWidth, cy, nNewCount); imagelist_get_bitmap_size(himl, nNewCount, cy, &sz);
TRACE("Create expanded bitmaps : himl=%p x=%d y=%d count=%d\n", himl, sz.cx, cy, nNewCount);
hdcBitmap = CreateCompatibleDC (0); hdcBitmap = CreateCompatibleDC (0);
hbmNewBitmap = ImageList_CreateImage(hdcBitmap, himl, nNewCount, cy); hbmNewBitmap = ImageList_CreateImage(hdcBitmap, himl, nNewCount, cy);
if (hbmNewBitmap == 0) if (hbmNewBitmap == 0)
ERR("creating new image bitmap (x=%d y=%d)!\n", nNewWidth, cy); ERR("creating new image bitmap (x=%d y=%d)!\n", sz.cx, cy);
imagelist_get_bitmap_size(himl, nNewCount, cy, &sz);
if (himl->cCurImage) if (himl->cCurImage)
{ {
...@@ -150,7 +149,7 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c ...@@ -150,7 +149,7 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c
if (himl->flags & ILC_MASK) if (himl->flags & ILC_MASK)
{ {
hbmNewBitmap = CreateBitmap (nNewWidth, cy, 1, 1, NULL); hbmNewBitmap = CreateBitmap (sz.cx, sz.cy, 1, 1, NULL);
if (hbmNewBitmap == 0) if (hbmNewBitmap == 0)
ERR("creating new mask bitmap!\n"); ERR("creating new mask bitmap!\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment