1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

LibGfx: Make draw_tiled_bitmap() in scaled contexts actually work

This commit is contained in:
Nico Weber 2021-01-22 18:53:09 -05:00 committed by Andreas Kling
parent d37efbe647
commit dcc967d1ad
2 changed files with 7 additions and 5 deletions

View file

@ -102,6 +102,8 @@ void Canvas::draw(Gfx::Painter& painter)
painter.blit({ 25, 39 }, *buggie, { 2, 30, 62, 20 });
painter.draw_scaled_bitmap({ 88, 39, 62 * 2, 20 * 2 }, *buggie, Gfx::IntRect { 2, 30, 62, 20 });
painter.draw_scaled_bitmap({ 202, 39, 80, 40 }, *buggie, Gfx::IntRect { 2, 30, 62, 20 });
painter.draw_tiled_bitmap({ 25, 60, WIDTH - 50, 40 }, *buggie);
}
int main(int argc, char** argv)