attempt to add icon

This commit is contained in:
UnknownShadow200 2019-01-31 15:42:57 +11:00
parent 6207bda659
commit d3022d86ab
5 changed files with 6 additions and 1 deletions

BIN
misc/CCicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

1
misc/CCicon.rc Normal file
View file

@ -0,0 +1 @@
1 ICON "CCicon.ico"

BIN
misc/CCicon_32.res Normal file

Binary file not shown.

BIN
misc/CCicon_64.res Normal file

Binary file not shown.

View file

@ -360,7 +360,11 @@ void Window_Create(int x, int y, int width, int height, struct GraphicsMode* mod
wc.hInstance = win_instance; wc.hInstance = win_instance;
wc.lpfnWndProc = Window_Procedure; wc.lpfnWndProc = Window_Procedure;
wc.lpszClassName = CC_WIN_CLASSNAME; wc.lpszClassName = CC_WIN_CLASSNAME;
/* TODO: Set window icons here */
wc.hIcon = (HICON)LoadImage(win_instance, MAKEINTRESOURCE(1), IMAGE_ICON,
GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON), 0);
wc.hIconSm = (HICON)LoadImage(win_instance,MAKEINTRESOURCE(1), IMAGE_ICON,
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0);
wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hCursor = LoadCursor(NULL, IDC_ARROW);
ATOM atom = RegisterClassEx(&wc); ATOM atom = RegisterClassEx(&wc);