MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowGetViewportSoundIconPos

Function WindowGetViewportSoundIconPos

src/openrct2-ui/interface/Window.cpp:518–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516 }
517
518 ScreenCoordsXY WindowGetViewportSoundIconPos(WindowBase& w)
519 {
520 const uint8_t buttonOffset = (Config::Get().interface.windowButtonsOnTheLeft) ? kCloseButtonSize + 2 : 0;
521 return w.windowPos + ScreenCoordsXY{ 2 + buttonOffset, 2 };
522 }
523} // namespace OpenRCT2::Ui
524
525namespace OpenRCT2::Ui::Windows

Callers 4

MainOnDrawMethod · 0.85
onDrawEntranceMethod · 0.85
OverviewDrawMethod · 0.85
onDrawOverviewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected