mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 05:49:30 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user