diff options
Diffstat (limited to 'source/core')
-rw-r--r-- | source/core/StarFont.cpp | 2 | ||||
-rw-r--r-- | source/core/StarImageProcessing.cpp | 2 |
2 files changed, 2 insertions, 2 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) { diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index 6d2c51d..390f600 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -214,7 +214,7 @@ ImageOperation imageOperationFromString(StringView string) { else // we're in A of A=B. In vanilla only A=B pairs are evaluated, so only throw an error if B is also there. return operation; - if (which = !which) + if ((which = !which)) operation.colorReplaceMap[*(Vec4B*)&a] = *(Vec4B*)&b; hexLen = 0; |