The latest SDK now reports correct bounds for partly transparent images

This commit is contained in:
Rezmason
2022-06-18 21:41:23 -07:00
parent c3f22a5afb
commit b26d585cad
4 changed files with 0 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -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

View File

@@ -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