mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Use NULL as instance when loading predefined icon/cursor
This commit is contained in:
parent
bc36c29f2a
commit
69ad8504b0
1 changed files with 6 additions and 6 deletions
|
@ -160,11 +160,11 @@ namespace entry
|
|||
wnd.cbSize = sizeof(wnd);
|
||||
wnd.lpfnWndProc = DefWindowProc;
|
||||
wnd.hInstance = instance;
|
||||
wnd.hIcon = LoadIcon(instance, IDI_APPLICATION);
|
||||
wnd.hCursor = LoadCursor(instance, IDC_ARROW);
|
||||
wnd.hIcon = LoadIcon(NULL, IDI_APPLICATION);
|
||||
wnd.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wnd.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
|
||||
wnd.lpszClassName = "bgfx_letterbox";
|
||||
wnd.hIconSm = LoadIcon(instance, IDI_APPLICATION);
|
||||
wnd.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
|
||||
RegisterClassExA(&wnd);
|
||||
|
||||
memset(&wnd, 0, sizeof(wnd) );
|
||||
|
@ -172,10 +172,10 @@ namespace entry
|
|||
wnd.style = CS_HREDRAW | CS_VREDRAW;
|
||||
wnd.lpfnWndProc = wndProc;
|
||||
wnd.hInstance = instance;
|
||||
wnd.hIcon = LoadIcon(instance, IDI_APPLICATION);
|
||||
wnd.hCursor = LoadCursor(instance, IDC_ARROW);
|
||||
wnd.hIcon = LoadIcon(NULL, IDI_APPLICATION);
|
||||
wnd.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wnd.lpszClassName = "bgfx";
|
||||
wnd.hIconSm = LoadIcon(instance, IDI_APPLICATION);
|
||||
wnd.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
|
||||
RegisterClassExA(&wnd);
|
||||
|
||||
HWND hwnd = CreateWindowA("bgfx_letterbox"
|
||||
|
|
Loading…
Reference in a new issue