src/gldraw.cc

changeset 568
2fb6c500ff9e
parent 564
79b23e02dcf1
child 574
10874674fe30
equal deleted inserted replaced
567:82101a296f9e 568:2fb6c500ff9e
1649 } 1649 }
1650 1650
1651 // ============================================================================= 1651 // =============================================================================
1652 // ----------------------------------------------------------------------------- 1652 // -----------------------------------------------------------------------------
1653 bool GLRenderer::setupOverlay (EFixedCamera cam, str file, int x, int y, int w, int h) 1653 bool GLRenderer::setupOverlay (EFixedCamera cam, str file, int x, int y, int w, int h)
1654 { QImage* img = new QImage (file); 1654 { QImage* img = new QImage (QImage (file).convertToFormat (QImage::Format_ARGB32));
1655 LDGLOverlay& info = getOverlay (cam); 1655 LDGLOverlay& info = getOverlay (cam);
1656 1656
1657 if (img->isNull()) 1657 if (img->isNull())
1658 { critical (tr ("Failed to load overlay image!")); 1658 { critical (tr ("Failed to load overlay image!"));
1659 delete img; 1659 delete img;

mercurial