mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1066320 - Crop lightweight theme image if it's larger than the displayable area; r=mfinkle
This commit is contained in:
parent
984d885b29
commit
1b160da21c
@ -170,7 +170,7 @@ public class LightweightTheme implements GeckoEventListener {
|
||||
// The bitmap image might be smaller than the device's width.
|
||||
// If it's smaller, fill the extra space on the left with the dominant color.
|
||||
if (bitmapWidth >= maxWidth) {
|
||||
mBitmap = bitmap;
|
||||
mBitmap = Bitmap.createBitmap(bitmap, bitmapWidth - maxWidth, 0, maxWidth, bitmapHeight);
|
||||
} else {
|
||||
Paint paint = new Paint();
|
||||
paint.setAntiAlias(true);
|
||||
|
Loading…
Reference in New Issue
Block a user