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) {
case Core::System::ResultStatus::ShutdownRequested:
emu_window->Close();
emu_window->RequestClose();
break;
case Core::System::ResultStatus::Success:
break;

View file

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

View file

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