mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[kandinsky] Correct bug
Change-Id: If6730dd0418c9d9d3c7428688750f47ec4c8edbe
This commit is contained in:
@@ -55,9 +55,9 @@ void KDContext::blendChar(char character, KDPoint p, KDText::FontSize size, KDCo
|
||||
KDColor * currentPixelAdress = characterBuffer + i + absoluteRect.width()*j;
|
||||
uint8_t intensity = 0;
|
||||
if (size == KDText::FontSize::Large) {
|
||||
intensity = bitmapLargeFont[character-firstCharacter][j + startingJ][i +startingI];
|
||||
intensity = bitmapLargeFont[(uint8_t)character-(uint8_t)firstCharacter][j + startingJ][i +startingI];
|
||||
} else {
|
||||
intensity = bitmapSmallFont[character-firstCharacter][j + startingJ][i +startingI];
|
||||
intensity = bitmapSmallFont[(uint8_t)character-(uint8_t)firstCharacter][j + startingJ][i +startingI];
|
||||
}
|
||||
*currentPixelAdress = KDColor::blend(textColor, *currentPixelAdress, intensity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user