diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-11 19:52:01 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-11 19:52:01 +1000 |
commit | 3c4a2eb71eea73c7e505ab631a1abc484f9e7b92 (patch) | |
tree | 4f93ca3fec31a5768d168f47f40b6ff1e6a7b949 /source/core/StarFont.cpp | |
parent | a98ff51ef7384f9e7d51e821880e9420c8110cb6 (diff) |
tooltip stuff
Diffstat (limited to 'source/core/StarFont.cpp')
-rw-r--r-- | source/core/StarFont.cpp | 2 |
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) { |