Seems we no longer need to explicitly set an icon -- and with hi-dpi

displays it's doing more harm than good, causing the icon to render
blurry.
This commit is contained in:
casey langen 2020-10-20 22:44:22 -07:00
parent 7d1193b4d7
commit 2424d2e534
2 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ int main(int argc, char* argv[]) {
App app("musikcube"); /* must be before layout creation */
#ifdef WIN32
app.SetIcon(IDI_ICON1);
//app.SetIcon(IDI_ICON1);
app.SetSingleInstanceId("musikcube");
#endif

View File

@ -211,8 +211,8 @@ namespace cursespp {
const HWND hwnd = GetMainWindow();
icon16 = loadIcon(resourceId, 16);
icon32 = loadIcon(resourceId, 48);
SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM) icon16);
SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM) icon32);
PostMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM) icon16);
PostMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM) icon32);
}
void InterceptWndProc() {