diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 11:56:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 11:56:38 +0100 |
commit | 11580babbfb1b8ae0acab2400f11d905c35642f5 (patch) | |
tree | 3b26fcd4bf7afe9ff92203468ba7cd95e192d55f /Applications/Calculator/main.cpp | |
parent | 939a605334a71dd8b7af91cdcbe9047281f7b5b9 (diff) | |
download | serenity-11580babbfb1b8ae0acab2400f11d905c35642f5.zip |
LibDraw: Put all classes in the Gfx namespace
I started adding things to a Draw namespace, but it somehow felt really
wrong seeing Draw::Rect and Draw::Bitmap, etc. So instead, let's rename
the library to LibGfx. :^)
Diffstat (limited to 'Applications/Calculator/main.cpp')
-rw-r--r-- | Applications/Calculator/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/Calculator/main.cpp b/Applications/Calculator/main.cpp index fb8f035e0b..7f19003c8c 100644 --- a/Applications/Calculator/main.cpp +++ b/Applications/Calculator/main.cpp @@ -63,7 +63,7 @@ int main(int argc, char** argv) window->set_main_widget(calc_widget); window->show(); - window->set_icon(GraphicsBitmap::load_from_file("/res/icons/16x16/app-calculator.png")); + window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-calculator.png")); auto menubar = make<GUI::MenuBar>(); @@ -76,7 +76,7 @@ int main(int argc, char** argv) auto help_menu = GUI::Menu::construct("Help"); help_menu->add_action(GUI::Action::create("About", [&](const GUI::Action&) { - GUI::AboutDialog::show("Calculator", load_png("/res/icons/16x16/app-calculator.png"), window); + GUI::AboutDialog::show("Calculator", Gfx::load_png("/res/icons/16x16/app-calculator.png"), window); })); menubar->add_menu(move(help_menu)); |