summaryrefslogtreecommitdiff
path: root/navit/graphics/qt_qpainter
diff options
context:
space:
mode:
authorwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-06-11 23:59:37 +0000
committerwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-06-11 23:59:37 +0000
commitfaa2797dc3c9ac8144e52c069832de7095213fc9 (patch)
treeacd1f7d02112ec81631c2f4e902c132b8e495587 /navit/graphics/qt_qpainter
parentd70edd922c2a02c143aeb1ecac9375748d4048fb (diff)
downloadnavit-faa2797dc3c9ac8144e52c069832de7095213fc9.tar.gz
Add:graphics/qt_qpianter: Use Format_ARGB32_Premultiplied for all QImages
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3356 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics/qt_qpainter')
-rw-r--r--navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
index e12d770b3..84d83e6d0 100644
--- a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
+++ b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
@@ -246,7 +246,7 @@ qt_qpainter_draw(struct graphics_priv *gr, const QRect *r, int paintev)
QImage img=overlay->widget->pixmap->convertToImage();
img.setAlphaBuffer(1);
#else
- QImage img=overlay->widget->pixmap->toImage().convertToFormat(QImage::Format_ARGB32);
+ QImage img=overlay->widget->pixmap->toImage().convertToFormat(QImage::Format_ARGB32_Premultiplied);
#endif
data=img.bits();
for (i = 0 ; i < size ; i++) {
@@ -785,7 +785,7 @@ static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, str
data=img.bits();
gr->freetype_methods.get_shadow(g,(unsigned char *)(img.jumpTable()),32,0,bgc,&transparent);
#else
- QImage img(g->w+2, g->h+2, QImage::Format_ARGB32);
+ QImage img(g->w+2, g->h+2, QImage::Format_ARGB32_Premultiplied);
data=img.bits();
gr->freetype_methods.get_shadow(g,(unsigned char *)data,32,img.bytesPerLine(),bgc,&transparent);
#endif
@@ -811,7 +811,7 @@ static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, str
data=img.bits();
gr->freetype_methods.get_glyph(g,(unsigned char *)(img.jumpTable()),32,0,fgc,bgc,&transparent);
#else
- QImage img(g->w, g->h, QImage::Format_ARGB32);
+ QImage img(g->w, g->h, QImage::Format_ARGB32_Premultiplied);
data=img.bits();
gr->freetype_methods.get_glyph(g,(unsigned char *)data,32,img.bytesPerLine(),fgc,bgc,&transparent);
#endif