Skip to content

Commit

Permalink
remove lines that restore window on close (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
briaguya-ai authored Dec 26, 2024
1 parent dc1f5f1 commit 944f0b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/graphic/Fast3D/gfx_dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ void GetMonitorHzPeriod(std::tuple<HMONITOR, RECT, BOOL> Monitor, double& Freque
}

static void gfx_dxgi_close() {
ShowWindow(dxgi.h_wnd, SW_NORMAL); // Restore window before closing, so normal window pos and size is saved
dxgi.is_running = false;
}

Expand Down
1 change: 0 additions & 1 deletion src/graphic/Fast3D/gfx_sdl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ static int target_fps = 60;
#define FRAME_INTERVAL_US_DENOMINATOR (target_fps)

static void gfx_sdl_close(void) {
SDL_RestoreWindow(wnd); // Restore window before closing, so normal window pos and size is saved
is_running = false;
}

Expand Down

0 comments on commit 944f0b4

Please sign in to comment.