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; |