C project now uses drawing contexts to draw faded glyph variants to a cache.

Switched to an opaque fade gradient and white-transparent drawing mode to avoid a bug discovered in the C SDK.
This commit is contained in:
Rezmason
2022-06-06 12:49:54 -07:00
parent 0ce4f35eb2
commit fadc1ed639
4 changed files with 37 additions and 134 deletions

View File

@@ -30,6 +30,7 @@ do
local variant = glyph:copy()
glyphs[i][j] = variant
gfx.pushContext(variant)
gfx.setImageDrawMode(gfx.kDrawModeWhiteTransparent);
fadeGradient:draw(fade * (glyphWidth - fadeGradient.width), 0)
gfx.popContext()
end