Веб-сайт самохостера 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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarFont.cpp b/source/core/StarFont.cpp
index 07a6265..b0d20fc 100644
--- a/source/core/StarFont.cpp
+++ b/source/core/StarFont.cpp
@@ -135,7 +135,7 @@ tuple<Image, Vec2I, bool> Font::render(String::Char c) {
}
}
}
- } else if (colored = slot->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA) {
+ } else if (colored = (slot->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA)) {
unsigned bpp = image.bytesPerPixel();
uint8_t* data = image.data() + bpp + ((image.width() * (image.height() - 2)) * bpp); // offset by 1 pixel as it's padded
for (size_t y = 0; y != height; ++y) {