Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarFont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarFont.cpp')
-rw-r--r--source/core/StarFont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarFont.cpp b/source/core/StarFont.cpp
index 9c8636a..6adc4c3 100644
--- a/source/core/StarFont.cpp
+++ b/source/core/StarFont.cpp
@@ -86,7 +86,7 @@ unsigned Font::width(String::Char c) {
}
-std::pair<Image, int> Font::render(String::Char c) {
+std::pair<Image, Vec2I> Font::render(String::Char c) {
if (!m_fontImpl)
throw FontException("Font::render called on uninitialized font.");
@@ -117,7 +117,7 @@ std::pair<Image, int> Font::render(String::Char c) {
}
}
- return { move(image), (slot->bitmap_top - (int)height) + m_pixelSize / 4 };
+ return { move(image), {slot->bitmap_left, (slot->bitmap_top - (int)height) + m_pixelSize / 4} };
}
}