Skip to content

Commit

Permalink
Fix all-black room drag image bug on Windows XP
Browse files Browse the repository at this point in the history
The drag image has to be created with ILC_MASK to work properly on XP.
  • Loading branch information
lookell committed Dec 20, 2021
1 parent bb7b0a8 commit b670bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Scrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ HIMAGELIST GetRoomDragImageList (const Rect *roomSrc, SInt16 roomNumber)
himl = NULL;
if (roomImage != NULL)
{
himl = ImageList_Create(smallWidth, smallHeight, ILC_COLOR32, 0, 1);
himl = ImageList_Create(smallWidth, smallHeight, ILC_COLOR32 | ILC_MASK, 0, 1);
if (himl != NULL)
{
if (ImageList_Add(himl, roomImage, NULL) < 0)
Expand Down

0 comments on commit b670bc1

Please sign in to comment.