This commit is contained in:
EmsiaetKadosh
2025-01-21 15:41:32 +08:00
parent b86053c3a7
commit edcc095979
17 changed files with 471 additions and 88 deletions
+5
View File
@@ -12,5 +12,10 @@ void Renderer::initialize() noexcept { MainDC = GetDC(MainWindowHandle); }
void Renderer::resize(const int width, const int height) noexcept(false) {
windowWidth = width;
windowHeight = height;
if (resizeTime > 0) return; // 防抖、防止频繁触发
if (resizeTime < 0) {
resizeTime = 20;
return;
}
if (game.getWindow()) game.getWindow()->onResize();
}