MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / SwitchScaleMode

Method SwitchScaleMode

src/client/ct_base_workspace.cpp:1013–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011 }
1012
1013 void BaseWorkspace::SwitchScaleMode(const tc::ScaleMode& mode) {
1014 settings_->SetScaleMode(mode);
1015 if (mode == ScaleMode::kFullWindow) {
1016 SwitchToFullWindow();
1017 }
1018 else if (mode == ScaleMode::kKeepAspectRatio) {
1019 CalculateAspectRatio();
1020 }
1021 }
1022
1023 void BaseWorkspace::CalculateAspectRatio() {
1024 if (game_view_) {

Callers 1

RegisterBaseListenersMethod · 0.95

Calls 1

SetScaleModeMethod · 0.80

Tested by

no test coverage detected