mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibGfxDemo: Fix "90s-bg.png" path
Incorrect image file path cause the application to crash on startup.
This commit is contained in:
parent
605a21b892
commit
dff5abb073
Notes:
sideshowbarker
2024-07-19 05:32:58 +09:00
Author: https://github.com/asliturk Commit: https://github.com/SerenityOS/serenity/commit/dff5abb0738 Pull-request: https://github.com/SerenityOS/serenity/pull/2590
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue