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

Function InputWindowResizeBegin

src/openrct2-ui/input/MouseInput.cpp:498–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496 }
497
498 static void InputWindowResizeBegin(WindowBase& w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords)
499 {
500 _inputState = InputState::resizing;
501 gInputDragLast = screenCoords;
502 _dragWidget.windowClassification = w.classification;
503 _dragWidget.windowNumber = w.number;
504 _dragWidget.widgetIndex = widgetIndex;
505 _originalWindowWidth = w.width;
506 _originalWindowHeight = w.height;
507 }
508
509 static void InputWindowResizeContinue(WindowBase& w, const ScreenCoordsXY& screenCoords)
510 {

Callers 1

InputWidgetLeftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected