diff options
author | withmorten <morten.with@gmail.com> | 2021-02-13 17:09:12 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-02-13 17:09:12 +0100 |
commit | e5d51604922c913ba1077ce2b3bc131f3365cc14 (patch) | |
tree | e642db946a32022de4e25e51b2a79a94d89f8d1d /src/skel | |
parent | readme fixes (diff) | |
download | re3-e5d51604922c913ba1077ce2b3bc131f3365cc14.tar re3-e5d51604922c913ba1077ce2b3bc131f3365cc14.tar.gz re3-e5d51604922c913ba1077ce2b3bc131f3365cc14.tar.bz2 re3-e5d51604922c913ba1077ce2b3bc131f3365cc14.tar.lz re3-e5d51604922c913ba1077ce2b3bc131f3365cc14.tar.xz re3-e5d51604922c913ba1077ce2b3bc131f3365cc14.tar.zst re3-e5d51604922c913ba1077ce2b3bc131f3365cc14.zip |
Diffstat (limited to 'src/skel')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index db9d101a..ce8da817 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -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()); |