- convert overlay images explicitly to ARGB32 format, otherwise they might not be able to be made translucent properly

Thu, 19 Dec 2013 01:25:50 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 19 Dec 2013 01:25:50 +0200
changeset 568
2fb6c500ff9e
parent 567
82101a296f9e
child 569
0d6fce0628fe

- convert overlay images explicitly to ARGB32 format, otherwise they might not be able to be made translucent properly

src/gldraw.cc file | annotate | diff | comparison | revisions
--- a/src/gldraw.cc	Thu Dec 19 01:19:42 2013 +0200
+++ b/src/gldraw.cc	Thu Dec 19 01:25:50 2013 +0200
@@ -1651,7 +1651,7 @@
 // =============================================================================
 // -----------------------------------------------------------------------------
 bool GLRenderer::setupOverlay (EFixedCamera cam, str file, int x, int y, int w, int h)
-{	QImage* img = new QImage (file);
+{	QImage* img = new QImage (QImage (file).convertToFormat (QImage::Format_ARGB32));
 	LDGLOverlay& info = getOverlay (cam);
 
 	if (img->isNull())

mercurial