mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibGfx: Make draw_tiled_bitmap() in scaled contexts actually work
This commit is contained in:
parent
d37efbe647
commit
dcc967d1ad
Notes:
sideshowbarker
2024-07-18 22:56:43 +09:00
Author: https://github.com/nico
Commit: dcc967d1ad
Pull-request: https://github.com/SerenityOS/serenity/pull/5059
2 changed files with 7 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue