1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

Base: Create /res/graphics/ and relocate system art assets

This commit is contained in:
thankyouverycool 2020-08-24 06:03:30 -04:00 committed by Andreas Kling
parent 4463fed398
commit 61ba39dfa0
10 changed files with 7 additions and 7 deletions

View file

@ -143,7 +143,7 @@ void Canvas::draw()
path.close();
painter.fill_path(path, Color::Yellow, Gfx::Painter::WindingRule::EvenOdd);
auto buggie = Gfx::Bitmap::load_from_file("/res/icons/buggie.png");
auto buggie = Gfx::Bitmap::load_from_file("/res/graphics/buggie.png");
painter.blit({ 280, 280 }, *buggie, buggie->rect(), 0.5);
painter.blit_scaled({ 360, 280, buggie->rect().width() * 2, buggie->rect().height() * 2 }, *buggie, buggie->rect(), 0.5, 0.5);