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) {
|
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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue