MCPcopy Create free account
hub / github.com/EasyRPG/Player / RefreshBackground

Method RefreshBackground

src/window.cpp:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void Window::RefreshBackground() {
179 background_needs_refresh = false;
180
181 BitmapRef bitmap = Bitmap::Create(width, height, background_alpha);
182
183 if (stretch) {
184 bitmap->StretchBlit(*windowskin, Rect(0, 0, 32, 32), 255);
185 } else {
186 bitmap->TiledBlit(Rect(0, 0, 32, 32), *windowskin, bitmap->GetRect(), 255);
187 }
188
189 background = bitmap;
190}
191
192void Window::RefreshFrame() {
193 frame_needs_refresh = false;

Callers

nothing calls this directly

Calls 4

StretchBlitMethod · 0.80
TiledBlitMethod · 0.80
GetRectMethod · 0.80
RectClass · 0.70

Tested by

no test coverage detected