Update Studio to close window

PiperOrigin-RevId: 942216322
Change-Id: I96b4665016df0acb0c5dec9caae27eeb9a87f874
This commit is contained in:
Taylor Howell
2026-07-03 12:09:50 -07:00
committed by Copybara-Service
parent 5618666a7d
commit 17feb4a64e
+2
View File
@@ -228,6 +228,8 @@ Window::Status Window::NewFrame() {
int drawable_height = height_;
SDL_GL_GetDrawableSize(sdl_window_, &drawable_width, &drawable_height);
scale_ = (float)drawable_width / (float)width_;
} else if (event.window.event == SDL_WINDOWEVENT_CLOSE) {
should_exit_ = true;
}
} else if (event.type == SDL_DROPFILE) {
drop_file_ = event.drop.file;