summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-01-20 09:07:00 -0500
committerAndreas Kling <kling@serenityos.org>2021-01-20 19:15:03 +0100
commite2dfd028f944d95bafcc9021231b47a010baa8ac (patch)
tree38f3426f8916e099121abb409bc1a502828c6aed /Userland/Demos
parentea80ff882d11bf22000397ba739a1f8e641a13c6 (diff)
downloadserenity-e2dfd028f944d95bafcc9021231b47a010baa8ac.zip
LibGfxScaleDemo: Add coverage for blit_with_alpha
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/LibGfxScaleDemo/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Demos/LibGfxScaleDemo/main.cpp b/Userland/Demos/LibGfxScaleDemo/main.cpp
index a34691a7b6..aa5fdd6373 100644
--- a/Userland/Demos/LibGfxScaleDemo/main.cpp
+++ b/Userland/Demos/LibGfxScaleDemo/main.cpp
@@ -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)