Skip to content

Commit e1c9b84

Browse files
author
Tom Seddon
committed
Fix a couple of SDL 2.0.20 build issues on Windows.
Builds and passes tests with Debug, but RelWithDebInfo fails to link. Not a priority.
1 parent 19a005a commit e1c9b84

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/b2/b2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,9 @@ static bool InitSystem(
910910

911911
if (options.enable_high_dpi) {
912912
#if SYSTEM_WINDOWS
913+
#ifdef SDL_HINT_WINDOWS_DPI_AWARENESS
913914
SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2");
915+
#endif
914916
#endif
915917
}
916918

src/b2/dear_imgui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ bool ImGuiStuff::Init(ImGuiConfigFlags extra_config_flags) {
273273

274274
SDL_SysWMinfo wm_info;
275275
SDL_VERSION(&wm_info.version);
276-
SDL_GetWindowWMInfo(window, &wm_info);
276+
SDL_GetWindowWMInfo(m_window, &wm_info);
277277

278278
ImGuiViewport *main_vp = ImGui::GetMainViewport();
279279
main_vp->PlatformHandleRaw = wm_info.info.win.window;

0 commit comments

Comments
 (0)