summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/graphics/rbfont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbfont.cpp')
-rw-r--r--utils/themeeditor/graphics/rbfont.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbfont.cpp b/utils/themeeditor/graphics/rbfont.cpp
index 1c2739d118..e8bff40e13 100644
--- a/utils/themeeditor/graphics/rbfont.cpp
+++ b/utils/themeeditor/graphics/rbfont.cpp
@@ -155,7 +155,8 @@ RBFont::~RBFont()
delete[] widthData;
}
-RBText* RBFont::renderText(QString text, QColor color, QGraphicsItem *parent)
+RBText* RBFont::renderText(QString text, QColor color, int viewWidth,
+ QGraphicsItem *parent)
{
int firstChar = header.value("firstchar").toInt();
int height = header.value("height").toInt();
@@ -221,6 +222,6 @@ RBText* RBFont::renderText(QString text, QColor color, QGraphicsItem *parent)
startX += widths[i];
}
- return new RBText(image, parent);
+ return new RBText(image, viewWidth, parent);
}