MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GfxScroll

Function GfxScroll

src/gfx.cpp:85–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83extern uint _dirty_block_colour;
84
85void GfxScroll(int left, int top, int width, int height, int xo, int yo)
86{
87 Blitter *blitter = BlitterFactory::GetCurrentBlitter();
88
89 if (xo == 0 && yo == 0) return;
90
91 if (_cursor.visible) UndrawMouseCursor();
92
93 if (_networking) NetworkUndrawChatMessage();
94
95 blitter->ScrollBuffer(_screen.dst_ptr, left, top, width, height, xo, yo);
96 /* This part of the screen is now dirty. */
97 VideoDriver::GetInstance()->MakeDirty(left, top, width, height);
98}
99
100
101/**

Callers 1

DoSetViewportPositionFunction · 0.85

Calls 4

UndrawMouseCursorFunction · 0.85
NetworkUndrawChatMessageFunction · 0.85
ScrollBufferMethod · 0.45
MakeDirtyMethod · 0.45

Tested by

no test coverage detected