Window setDisplay no longer hides window

This commit is contained in:
Grayson Riffe 2025-02-13 12:42:53 -06:00
parent c5e1a66e36
commit 160ca7070f

View File

@ -30,8 +30,6 @@ namespace nf::client {
void Window::setDisplay(DisplayConfig config) {
NFLog("Setting window display");
m_width = config.width, m_height = config.height;
bool wasShown = IsWindowVisible(m_handle);
show(false);
// TODO: Only use "active" monitor when starting windowed
POINT cursor = {};
@ -62,8 +60,6 @@ namespace nf::client {
}
SetWindowPos(m_handle, nullptr, windowX, windowY, windowWidth, windowHeight, SWP_NOZORDER | SWP_FRAMECHANGED);
show(wasShown);
}
void Window::runLoop() {