mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
impr: Better experience when first starting ImHex (#1510)
This commit is contained in:
@@ -159,6 +159,14 @@ namespace hex {
|
||||
|
||||
glfwPollEvents();
|
||||
|
||||
static ImVec2 lastWindowSize = ImHexApi::System::getMainWindowSize();
|
||||
if (ImHexApi::System::impl::isWindowResizable()) {
|
||||
glfwSetWindowSizeLimits(m_window, 480_scaled, 360_scaled, GLFW_DONT_CARE, GLFW_DONT_CARE);
|
||||
lastWindowSize = ImHexApi::System::getMainWindowSize();
|
||||
} else {
|
||||
glfwSetWindowSizeLimits(m_window, lastWindowSize.x, lastWindowSize.y, lastWindowSize.x, lastWindowSize.y);
|
||||
}
|
||||
|
||||
// Render frame
|
||||
this->frameBegin();
|
||||
this->frame();
|
||||
|
||||
Reference in New Issue
Block a user