mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
ATC_BLE_OEPL: Fix keeing aspect in some cases
This commit is contained in:
+1
-2
@@ -387,8 +387,7 @@ public class ATCBLEOEPLDeviceSupport extends AbstractBTLESingleDeviceSupport {
|
||||
} else {
|
||||
// scale to width
|
||||
dst_width = epaper_width;
|
||||
dst_height = (int) (epaper_width * src_aspect);
|
||||
|
||||
dst_height = (int) (epaper_width * (1/src_aspect));
|
||||
}
|
||||
final Bitmap bmpResized = Bitmap.createBitmap(epaper_width, epaper_height, Bitmap.Config.ARGB_8888);
|
||||
final Canvas canvas = new Canvas(bmpResized);
|
||||
|
||||
Reference in New Issue
Block a user