summaryrefslogtreecommitdiff
path: root/navit/graphics/qt_qpainter
diff options
context:
space:
mode:
authorSebastian Leske <sebastian.leske@sleske.name>2015-10-05 08:12:57 +0200
committerSebastian Leske <sebastian.leske@sleske.name>2015-10-06 16:11:18 +0200
commit31d3cd58aa702a94d82aff5e56d5ee34690da6cd (patch)
tree213a0c275fee6e6fee9912c609d6b57e156b1bad /navit/graphics/qt_qpainter
parent940cfe058571e655c933b92681396b589b80a307 (diff)
downloadnavit-31d3cd58aa702a94d82aff5e56d5ee34690da6cd.tar.gz
Remove unused parameter 'depth' from get_glyph/get_shadow.R6299
The 'depth' parameter was only required for the gtk_drawing_area graphics plugin, before it was switched to use Cairo. Now all graphics drivers use depth=32, so that case is now hardcoded.
Diffstat (limited to 'navit/graphics/qt_qpainter')
-rw-r--r--navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
index 20ac0c296..714f0753e 100644
--- a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
+++ b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
@@ -420,7 +420,7 @@ static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, str
unsigned char *data;
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);
+ gr->freetype_methods.get_shadow(g,(unsigned char *)data,img.bytesPerLine(),bgc,&transparent);
painter->drawImage(((x+g->x)>>6)-1, ((y+g->y)>>6)-1, img);
}
@@ -439,7 +439,7 @@ static void draw_text(struct graphics_priv *gr, struct graphics_gc_priv *fg, str
unsigned char *data;
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);
+ gr->freetype_methods.get_glyph(g,(unsigned char *)data,img.bytesPerLine(),fgc,bgc,&transparent);
painter->drawImage((x+g->x)>>6, (y+g->y)>>6, img);
}
x+=g->dx;