| 176 | } |
| 177 | |
| 178 | void 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 | |
| 192 | void Window::RefreshFrame() { |
| 193 | frame_needs_refresh = false; |
nothing calls this directly
no test coverage detected