mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibDraw: Rename Painter::blit_tiled() => draw_tiled_bitmap()
Also change the API to take a destination rect instead of a source rect since internally it was basically creating a destination rect from the source rect anyway. It was a little confusing.
This commit is contained in:
parent
762f20944c
commit
96f10c8de2
3 changed files with 6 additions and 6 deletions
|
@ -120,7 +120,7 @@ void WSCompositor::compose()
|
|||
m_back_painter->blit_offset(dirty_rect.location(), *m_wallpaper,
|
||||
dirty_rect, offset);
|
||||
} else if (m_wallpaper_mode == WallpaperMode::Tile) {
|
||||
m_back_painter->blit_tiled(dirty_rect.location(), *m_wallpaper, dirty_rect);
|
||||
m_back_painter->draw_tiled_bitmap(dirty_rect, *m_wallpaper);
|
||||
} else {
|
||||
float hscale = (float)m_wallpaper->size().width() / (float)ws.size().width();
|
||||
float vscale = (float)m_wallpaper->size().height() / (float)ws.size().height();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue