mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -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);
|
LCDBitmap *variant = gfx->copyBitmap(glyph);
|
||||||
glyphs[i * numFades + j] = variant;
|
glyphs[i * numFades + j] = variant;
|
||||||
gfx->pushContext(variant);
|
gfx->pushContext(variant);
|
||||||
gfx->setDrawMode(kDrawModeWhiteTransparent);
|
|
||||||
gfx->drawBitmap(fadeGradient, fade * (glyphWidth - fadeGradientWidth), 0, kBitmapUnflipped);
|
gfx->drawBitmap(fadeGradient, fade * (glyphWidth - fadeGradientWidth), 0, kBitmapUnflipped);
|
||||||
gfx->popContext();
|
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()
|
local variant = glyph:copy()
|
||||||
glyphs[i][j] = variant
|
glyphs[i][j] = variant
|
||||||
gfx.pushContext(variant)
|
gfx.pushContext(variant)
|
||||||
gfx.setImageDrawMode(gfx.kDrawModeWhiteTransparent);
|
|
||||||
fadeGradient:draw(fade * (glyphWidth - fadeGradient.width), 0)
|
fadeGradient:draw(fade * (glyphWidth - fadeGradient.width), 0)
|
||||||
gfx.popContext()
|
gfx.popContext()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user