mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-06 17:39:45 +00:00
better
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@598 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -201,6 +201,9 @@ static LRESULT CALLBACK wndproc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) {
|
|||||||
} else if(msg == WM_SETCURSOR) {
|
} else if(msg == WM_SETCURSOR) {
|
||||||
if(LOWORD(lp) != HTCLIENT) return DefWindowProc(hWnd, msg, wp, lp);
|
if(LOWORD(lp) != HTCLIENT) return DefWindowProc(hWnd, msg, wp, lp);
|
||||||
if(u->ll->cursor != NULL) SetCursor(u->ll->cursor);
|
if(u->ll->cursor != NULL) SetCursor(u->ll->cursor);
|
||||||
|
}else if(msg == WM_USER){
|
||||||
|
InvalidateRect(hWnd, NULL, FALSE);
|
||||||
|
UpdateWindow(hWnd);
|
||||||
} else {
|
} else {
|
||||||
return DefWindowProc(hWnd, msg, wp, lp);
|
return DefWindowProc(hWnd, msg, wp, lp);
|
||||||
}
|
}
|
||||||
@@ -516,8 +519,7 @@ void MwLLSetIcon(MwLL handle, MwLLPixmap pixmap) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MwLLForceRender(MwLL handle) {
|
void MwLLForceRender(MwLL handle) {
|
||||||
InvalidateRect(handle->hWnd, NULL, FALSE);
|
PostMessage(handle->hWnd, WM_USER, 0, 0);
|
||||||
UpdateWindow(handle->hWnd); /* Windows 11 wants this */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwLLSetCursor(MwLL handle, MwCursor* image, MwCursor* mask) {
|
void MwLLSetCursor(MwLL handle, MwCursor* image, MwCursor* mask) {
|
||||||
|
|||||||
Reference in New Issue
Block a user