mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-10 13:17:36 +00:00
LibGfxDemo: Fix "90s-bg.png" path
Incorrect image file path cause the application to crash on startup.
This commit is contained in:
committed by
Andreas Kling
parent
605a21b892
commit
dff5abb073
@@ -122,7 +122,7 @@ void Canvas::draw()
|
||||
painter.draw_line({ 740, 140 }, { 640, 240 }, Color::Red, 5, Gfx::Painter::LineStyle::Solid);
|
||||
painter.draw_line({ 690, 140 }, { 640, 240 }, Color::Blue, 10, Gfx::Painter::LineStyle::Solid);
|
||||
|
||||
auto bg = Gfx::Bitmap::load_from_file("/home/anon/www/90s-bg.png");
|
||||
auto bg = Gfx::Bitmap::load_from_file("/res/html/misc/90s-bg.png");
|
||||
painter.draw_tiled_bitmap({ 20, 260, 480, 320 }, *bg);
|
||||
|
||||
painter.draw_line({ 40, 480 }, { 20, 260 }, Color::Red);
|
||||
|
||||
Reference in New Issue
Block a user