summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-07-16 21:01:10 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-07-16 21:01:10 +0200
commite933325230a34cdede1cf52067aadf0ab8a77d5b (patch)
treecd1cd41ab79cd0994163a9238584362bf474deba
parent0d2a5ccadac5abf08a0fdc9c80be75dc4e4b5534 (diff)
downloadalpine-usb-creator-e933325230a34cdede1cf52067aadf0ab8a77d5b.tar.bz2
alpine-usb-creator-e933325230a34cdede1cf52067aadf0ab8a77d5b.tar.xz
Add image handler for PNG files
-rw-r--r--main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 73c7320..5a5298d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -5,6 +5,9 @@ IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
+ wxImageHandler * pngLoader = new wxPNGHandler();
+ wxImage::AddHandler(pngLoader);
+
Dialog *d = new Dialog((wxWindow *)NULL);
d->Show(true);
return true;