From d137dba785fc19e219ef1014536632d85dad9c6a Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Fri, 15 Oct 2021 16:48:44 -0400 Subject: [PATCH] Fix height of split double pages --- app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt index 558e83f98cbe..9de3e9b1c2bc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt @@ -302,7 +302,7 @@ object ImageUtil { ): ByteArrayInputStream { val height = imageBitmap.height val width = imageBitmap.width - val result = Bitmap.createBitmap(width / 2, height * 2, Bitmap.Config.ARGB_8888) + val result = Bitmap.createBitmap(width / 2, height, Bitmap.Config.ARGB_8888) val canvas = Canvas(result) progressCallback?.invoke(98) canvas.drawBitmap(imageBitmap, Rect(if (!secondHalf) 0 else width / 2, 0, if (secondHalf) width else width / 2, height), result.rect, null)