Skip to content

Commit

Permalink
LibGfxDemo: Fix "90s-bg.png" path
Browse files Browse the repository at this point in the history
Incorrect image file path cause the application to crash on startup.
  • Loading branch information
asliturk authored and awesomekling committed Jun 19, 2020
1 parent 605a21b commit dff5abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Demos/LibGfxDemo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dff5abb

Please sign in to comment.