mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibGfxScaleDemo: Add coverage for blit_with_alpha
This commit is contained in:
parent
ea80ff882d
commit
e2dfd028f9
Notes:
sideshowbarker
2024-07-18 23:02:45 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/e2dfd028f94 Pull-request: https://github.com/SerenityOS/serenity/pull/5016
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ void Canvas::draw(Gfx::Painter& painter)
|
|||
|
||||
painter.draw_rect({ 20, 34, WIDTH - 40, HEIGHT - 45 }, palette().color(Gfx::ColorRole::Selection), true);
|
||||
painter.draw_rect({ 24, 38, WIDTH - 48, HEIGHT - 53 }, palette().color(Gfx::ColorRole::Selection));
|
||||
|
||||
auto buggie = Gfx::Bitmap::load_from_file("/res/graphics/buggie.png");
|
||||
painter.blit({ 25, 39 }, *buggie, { 2, 30, 62, 20 });
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
|
|
Loading…
Reference in a new issue