Update Studio to close window
PiperOrigin-RevId: 942216322 Change-Id: I96b4665016df0acb0c5dec9caae27eeb9a87f874
This commit is contained in:
committed by
Copybara-Service
parent
5618666a7d
commit
17feb4a64e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user