Skip to content

Commit 1e24e33

Browse files
committed
fixed hotspot was no longer set for cursors
1 parent 1121fa1 commit 1e24e33

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

libs/directx/window.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,10 +1038,8 @@ static HICON create_icon_internal(int width, int height, vbyte* data, bool icon,
10381038

10391039
memset(&ii, 0, sizeof(ii));
10401040
ii.fIcon = icon;
1041-
if (icon) {
1042-
ii.xHotspot = (DWORD)hotX;
1043-
ii.yHotspot = (DWORD)hotY;
1044-
}
1041+
ii.xHotspot = (DWORD)hotX;
1042+
ii.yHotspot = (DWORD)hotY;
10451043
ii.hbmColor = CreateDIBSection(hdc, (BITMAPINFO*)&bmh, DIB_RGB_COLORS, &pixels, NULL, 0);
10461044
ii.hbmMask = CreateBitmap(width, height, 1, 1, maskbits);
10471045
ReleaseDC(NULL, hdc);

0 commit comments

Comments
 (0)