mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
attempt to add icon
This commit is contained in:
parent
6207bda659
commit
d3022d86ab
5 changed files with 6 additions and 1 deletions
BIN
misc/CCicon.ico
Normal file
BIN
misc/CCicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 107 KiB |
1
misc/CCicon.rc
Normal file
1
misc/CCicon.rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
1 ICON "CCicon.ico"
|
BIN
misc/CCicon_32.res
Normal file
BIN
misc/CCicon_32.res
Normal file
Binary file not shown.
BIN
misc/CCicon_64.res
Normal file
BIN
misc/CCicon_64.res
Normal file
Binary file not shown.
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue