mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 18:39:00 +00:00
glfw window icon
This commit is contained in:
parent
ddcc19d7cf
commit
e5d5160492
1 changed files with 14 additions and 0 deletions
|
@ -52,6 +52,11 @@ long _dwOperatingSystemVersion;
|
|||
|
||||
#define MAX_SUBSYSTEMS (16)
|
||||
|
||||
#ifdef _WIN32
|
||||
#define GLFW_EXPOSE_NATIVE_WIN32
|
||||
#include <GLFW/glfw3native.h>
|
||||
#endif
|
||||
|
||||
rw::EngineOpenParams openParams;
|
||||
|
||||
static RwBool ForegroundApp = TRUE;
|
||||
|
@ -1592,6 +1597,15 @@ main(int argc, char *argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
HWND wnd = glfwGetWin32Window(PSGLOBAL(window));
|
||||
|
||||
HICON icon = LoadIcon(instance, MAKEINTRESOURCE(IDI_MAIN_ICON));
|
||||
|
||||
SendMessage(wnd, WM_SETICON, ICON_BIG, (LPARAM)icon);
|
||||
SendMessage(wnd, WM_SETICON, ICON_SMALL, (LPARAM)icon);
|
||||
#endif
|
||||
|
||||
psPostRWinit();
|
||||
|
||||
ControlsManager.InitDefaultControlConfigMouse(MousePointerStateHelper.GetMouseSetUp());
|
||||
|
|
Loading…
Reference in a new issue