Rename Close() -> RequestClose()
This commit is contained in:
parent
c634c263db
commit
401336c5e7
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue