From b670bc1aa92878e392a45b7603c7b6f889130236 Mon Sep 17 00:00:00 2001 From: lookell <61921888+lookell@users.noreply.github.com> Date: Mon, 20 Dec 2021 16:30:36 +1030 Subject: [PATCH] Fix all-black room drag image bug on Windows XP The drag image has to be created with ILC_MASK to work properly on XP. --- Sources/Scrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Scrap.c b/Sources/Scrap.c index 593a5db..7b74e88 100644 --- a/Sources/Scrap.c +++ b/Sources/Scrap.c @@ -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)