mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[client,sdl] rename SdlContext::removeDisplay
To match with SdlContext::addDisplayWindow rename it to SdlContext::removeDisplayWindow
This commit is contained in:
@@ -878,7 +878,7 @@ bool SdlContext::addDisplayWindow(SDL_DisplayID id)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SdlContext::removeDisplay(SDL_DisplayID id)
|
||||
bool SdlContext::removeDisplayWindow(SDL_DisplayID id)
|
||||
{
|
||||
for (auto& w : _windows)
|
||||
{
|
||||
|
||||
@@ -120,7 +120,7 @@ class SdlContext
|
||||
[[nodiscard]] SdlWindow* getFirstWindow();
|
||||
|
||||
[[nodiscard]] bool addDisplayWindow(SDL_DisplayID id);
|
||||
[[nodiscard]] bool removeDisplay(SDL_DisplayID id);
|
||||
[[nodiscard]] bool removeDisplayWindow(SDL_DisplayID id);
|
||||
|
||||
[[nodiscard]] sdlDispContext& getDisplayChannelContext();
|
||||
[[nodiscard]] sdlInput& getInputChannelContext();
|
||||
@@ -206,7 +206,7 @@ class SdlContext
|
||||
|
||||
SdlConnectionDialogWrapper _dialog;
|
||||
|
||||
std::map<Uint32, SdlWindow> _windows;
|
||||
std::map<SDL_WindowID, SdlWindow> _windows;
|
||||
|
||||
uint32_t _windowWidth = 0;
|
||||
uint32_t _windowHeigth = 0;
|
||||
|
||||
@@ -308,7 +308,7 @@ bool sdlDispContext::updateMonitors(SDL_EventType type, SDL_DisplayID displayID)
|
||||
return false;
|
||||
break;
|
||||
case SDL_EVENT_DISPLAY_REMOVED:
|
||||
if (!_sdl->removeDisplay(displayID))
|
||||
if (!_sdl->removeDisplayWindow(displayID))
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user