Rename Close() -> RequestClose()

This commit is contained in:
Ian Chamberlain 2022-08-22 18:10:47 -04:00
parent c634c263db
commit 401336c5e7
No known key found for this signature in database
GPG Key ID: AE5484D09405AA60
3 changed files with 5 additions and 5 deletions

View File

@ -443,7 +443,7 @@ int main(int argc, char** argv) {
switch (result) { switch (result) {
case Core::System::ResultStatus::ShutdownRequested: case Core::System::ResultStatus::ShutdownRequested:
emu_window->Close(); emu_window->RequestClose();
break; break;
case Core::System::ResultStatus::Success: case Core::System::ResultStatus::Success:
break; break;

View File

@ -104,7 +104,7 @@ bool EmuWindow_SDL2::IsOpen() const {
return is_open; return is_open;
} }
void EmuWindow_SDL2::Close() { void EmuWindow_SDL2::RequestClose() {
is_open = false; is_open = false;
} }
@ -260,7 +260,7 @@ void EmuWindow_SDL2::PollEvents() {
OnResize(); OnResize();
break; break;
case SDL_WINDOWEVENT_CLOSE: case SDL_WINDOWEVENT_CLOSE:
is_open = false; RequestClose();
break; break;
} }
break; break;
@ -291,7 +291,7 @@ void EmuWindow_SDL2::PollEvents() {
OnFingerUp(); OnFingerUp();
break; break;
case SDL_QUIT: case SDL_QUIT:
is_open = false; RequestClose();
break; break;
default: default:
break; break;

View File

@ -47,7 +47,7 @@ public:
bool IsOpen() const; bool IsOpen() const;
/// Close the window. /// Close the window.
void Close(); void RequestClose();
/// Creates a new context that is shared with the current context /// Creates a new context that is shared with the current context
std::unique_ptr<GraphicsContext> CreateSharedContext() const override; std::unique_ptr<GraphicsContext> CreateSharedContext() const override;