git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@358 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-16 09:51:44 +00:00
parent e938efc2a7
commit 8d0745a7a2

View File

@@ -417,21 +417,16 @@ void MwLLDrawPixmap(MwLL handle, MwRect* rect, MwLLPixmap pixmap) {
void MwLLSetIcon(MwLL handle, MwLLPixmap pixmap) {
ICONINFO ii;
HICON ico;
HBITMAP mask;
mask = CreateBitmap(pixmap->width, pixmap->height, 1, 1, NULL);
memset(&ii, 0, sizeof(ii));
ii.fIcon = TRUE;
ii.xHotspot = 0;
ii.yHotspot = 0;
ii.hbmMask = mask;
ii.hbmMask = pixmap->hMask;
ii.hbmColor = pixmap->hBitmap;
ico = CreateIconIndirect(&ii);
DeleteObject(mask);
SetClassLongPtr(handle->hWnd, GCLP_HICON, (LPARAM)ico);
DestroyIcon(ico);