activate window upon creation to set focus and show taskbar icon
This commit is contained in:
parent
3be2793a84
commit
6f0dc1a9ca
|
|
@ -1590,8 +1590,6 @@ int InitPlatform(void)
|
||||||
|
|
||||||
if (rlGetVersion() == RL_OPENGL_11_SOFTWARE) // Using software renderer
|
if (rlGetVersion() == RL_OPENGL_11_SOFTWARE) // Using software renderer
|
||||||
{
|
{
|
||||||
//ShowWindow(platform.hwnd, SW_SHOWDEFAULT); //SW_SHOWNORMAL
|
|
||||||
|
|
||||||
// Initialize software framebuffer
|
// Initialize software framebuffer
|
||||||
BITMAPINFO bmi = { 0 };
|
BITMAPINFO bmi = { 0 };
|
||||||
ZeroMemory(&bmi, sizeof(bmi));
|
ZeroMemory(&bmi, sizeof(bmi));
|
||||||
|
|
@ -1620,6 +1618,9 @@ int InitPlatform(void)
|
||||||
|
|
||||||
CORE.Window.ready = true;
|
CORE.Window.ready = true;
|
||||||
|
|
||||||
|
// Activate window to set focus and show taskbar icon
|
||||||
|
ShowWindow(platform.hwnd, SW_SHOWDEFAULT);
|
||||||
|
|
||||||
// Update flags (in case of deferred state change required)
|
// Update flags (in case of deferred state change required)
|
||||||
UpdateFlags(platform.hwnd, platform.desiredFlags, platform.appScreenWidth, platform.appScreenHeight);
|
UpdateFlags(platform.hwnd, platform.desiredFlags, platform.appScreenWidth, platform.appScreenHeight);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user