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

Method UpdateFullColorState

src/client/ct_game_view.cpp:173–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 void GameView::UpdateFullColorState(bool full_color) {
174 if (!is_main_view_) {
175 return;
176 }
177 if (settings_->IsFullColorEnabled() != full_color) {
178 settings_->SetFullColorEnabled(full_color);
179 ctx_->SendAppMessage(MsgClientFloatControllerPanelUpdate{
180 .update_type_ = MsgClientFloatControllerPanelUpdate::EUpdate::kFullColorStatus
181 });
182 }
183 }
184
185 void GameView::RefreshI420Image(const std::shared_ptr<RawImage>& image) {
186 if (video_widget_->GetDisplayImageFormat() != kRawImageI420) {

Callers 1

Calls 3

IsFullColorEnabledMethod · 0.80
SetFullColorEnabledMethod · 0.80
SendAppMessageMethod · 0.45

Tested by

no test coverage detected