impr: Better experience when first starting ImHex (#1510)

This commit is contained in:
Nik
2024-01-21 18:39:51 +01:00
committed by GitHub
parent d005b5d2d9
commit 58603ed12a
33 changed files with 533 additions and 215 deletions

View File

@@ -13,6 +13,7 @@
#include <imgui.h>
#include <imgui_internal.h>
#include <GLFW/glfw3.h>
#if defined(OS_WINDOWS)
#define WIN32_LEAN_AND_MEAN
@@ -448,6 +449,11 @@ namespace hex {
s_lastFrameTime = time;
}
static bool s_windowResizable = true;
bool isWindowResizable() {
return s_windowResizable;
}
}
@@ -708,6 +714,12 @@ namespace hex {
return impl::s_lastFrameTime;
}
void setWindowResizable(bool resizable) {
glfwSetWindowAttrib(impl::s_mainWindowHandle, GLFW_RESIZABLE, resizable);
impl::s_windowResizable = resizable;
}
}