comctl32: When removing an image, move the remaining images one forward, not one backwards.
This commit is contained in:
parent
8f375e70f8
commit
2614e0ee91
|
@ -2123,12 +2123,12 @@ ImageList_Remove (HIMAGELIST himl, INT i)
|
|||
|
||||
SelectObject (hdcBmp, hbmNewImage);
|
||||
imagelist_copy_images( himl, himl->hdcImage, hdcBmp, i,
|
||||
(himl->cCurImage - i - 1), i + 1 );
|
||||
(himl->cCurImage - i - 1), i - 1 );
|
||||
|
||||
if (himl->hbmMask) {
|
||||
SelectObject (hdcBmp, hbmNewMask);
|
||||
imagelist_copy_images( himl, himl->hdcMask, hdcBmp, i,
|
||||
(himl->cCurImage - i - 1), i + 1 );
|
||||
(himl->cCurImage - i - 1), i - 1 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue