mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
PNGLoader: Support for color type 2 (RGB triplets) and multiple IDAT chunks.
This commit is contained in:
parent
42755e98cf
commit
65348e7dc1
4 changed files with 83 additions and 54 deletions
|
@ -15,7 +15,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
#endif
|
||||
|
||||
const char* path = "/res/icons/folder32.png";
|
||||
const char* path = "/res/wallpapers/sunset-retro.png";
|
||||
if (argc > 1)
|
||||
path = argv[1];
|
||||
|
||||
|
@ -26,7 +26,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
auto* window = new GWindow;
|
||||
window->set_title(String::format("qs: %s", path));
|
||||
window->set_title(String::format("QuickShow: %s %s", path, bitmap->size().to_string().characters()));
|
||||
window->set_rect(200, 200, bitmap->width(), bitmap->height());
|
||||
|
||||
auto* widget = new GWidget;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue