mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
The latest SDK now reports correct bounds for partly transparent images
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.8 KiB |
@@ -94,7 +94,6 @@ static void init(void)
|
||||
LCDBitmap *variant = gfx->copyBitmap(glyph);
|
||||
glyphs[i * numFades + j] = variant;
|
||||
gfx->pushContext(variant);
|
||||
gfx->setDrawMode(kDrawModeWhiteTransparent);
|
||||
gfx->drawBitmap(fadeGradient, fade * (glyphWidth - fadeGradientWidth), 0, kBitmapUnflipped);
|
||||
gfx->popContext();
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.8 KiB |
@@ -32,7 +32,6 @@ 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