diff options
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 8113cf9..82151e3 100644 --- a/source/core/StarFont.cpp +++ b/source/core/StarFont.cpp @@ -115,7 +115,7 @@ std::pair<Image, Vec2I> Font::render(String::Char c) { for (unsigned y = 0; y != height; ++y) { uint8_t* p = slot->bitmap.buffer + y * slot->bitmap.pitch; for (unsigned x = 0; x != width; ++x) { - if (x >= 0 && y >= 0 && x < width && y < height) { + if (x < width && y < height) { uint8_t value = *(p + x); if (m_alphaThreshold) { if (value >= m_alphaThreshold) { |