Skip to content

Commit ccddc6d

Browse files
committed
set window icon
1 parent 28129aa commit ccddc6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Graphics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <tchar.h>
22
#include "Graphics.h"
3+
#include "Resources/resource.h"
34

45
Graphics::Graphics()
56
: mDirectDraw( NULL )
@@ -47,7 +48,7 @@ bool Graphics::Init( HINSTANCE _instance, int _screenWidth, int _screenHeight, i
4748
wndClass.cbClsExtra = 0;
4849
wndClass.cbWndExtra = 0;
4950
wndClass.hInstance = _instance;
50-
wndClass.hIcon = NULL;
51+
wndClass.hIcon = LoadIcon( _instance, MAKEINTRESOURCE( IDI_ICON1 ) );
5152
wndClass.hCursor = LoadCursor( NULL, IDC_ARROW );
5253
wndClass.hbrBackground = NULL;
5354
wndClass.lpszMenuName = NULL;

0 commit comments

Comments
 (0)