Linux: Try to fix warning "Na handler for image type 15"
This commit is contained in:
parent
6dbc1ccf21
commit
1418b71541
1 changed files with 5 additions and 3 deletions
|
@ -539,9 +539,13 @@ bool GUI_App::on_init_inner()
|
||||||
|
|
||||||
app_config->set("version", SLIC3R_VERSION);
|
app_config->set("version", SLIC3R_VERSION);
|
||||||
app_config->save();
|
app_config->save();
|
||||||
|
/*
|
||||||
if (wxImage::FindHandler(wxBITMAP_TYPE_JPEG) == nullptr)
|
if (wxImage::FindHandler(wxBITMAP_TYPE_JPEG) == nullptr)
|
||||||
wxImage::AddHandler(new wxJPEGHandler());
|
wxImage::AddHandler(new wxJPEGHandler());
|
||||||
|
if (wxImage::FindHandler(wxBITMAP_TYPE_PNG) == nullptr)
|
||||||
|
wxImage::AddHandler(new wxPNGHandler());
|
||||||
|
*/
|
||||||
|
wxInitAllImageHandlers();
|
||||||
|
|
||||||
wxBitmap bitmap = create_scaled_bitmap("prusa_slicer_logo", nullptr, 400);
|
wxBitmap bitmap = create_scaled_bitmap("prusa_slicer_logo", nullptr, 400);
|
||||||
wxBitmap bmp(from_u8(var("splashscreen.jpg")), wxBITMAP_TYPE_JPEG);
|
wxBitmap bmp(from_u8(var("splashscreen.jpg")), wxBITMAP_TYPE_JPEG);
|
||||||
|
@ -598,8 +602,6 @@ bool GUI_App::on_init_inner()
|
||||||
Slic3r::I18N::set_translate_callback(libslic3r_translate_callback);
|
Slic3r::I18N::set_translate_callback(libslic3r_translate_callback);
|
||||||
|
|
||||||
// application frame
|
// application frame
|
||||||
if (wxImage::FindHandler(wxBITMAP_TYPE_PNG) == nullptr)
|
|
||||||
wxImage::AddHandler(new wxPNGHandler());
|
|
||||||
scrn->SetText(_L("Creating settings tabs..."));
|
scrn->SetText(_L("Creating settings tabs..."));
|
||||||
|
|
||||||
mainframe = new MainFrame();
|
mainframe = new MainFrame();
|
||||||
|
|
Loading…
Reference in a new issue