mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Crash if platform backend doesn't have GetWindowFocus function defined yet
This commit is contained in:
@@ -388,7 +388,7 @@ namespace hex {
|
||||
if (!anyWindowFocused) {
|
||||
const auto platformIo = ImGui::GetPlatformIO();
|
||||
for (auto *viewport : platformIo.Viewports) {
|
||||
if (platformIo.Platform_GetWindowFocus(viewport)) {
|
||||
if (platformIo.Platform_GetWindowFocus != nullptr && platformIo.Platform_GetWindowFocus(viewport)) {
|
||||
anyWindowFocused = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user