mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-28 20:17:51 +02:00
Deem images safe if they're within the view dimensions
Some pages present flickering due to having dimensions that surpass those calculated in SubsamplingScaleImageView.
This commit is contained in:
@ -56,8 +56,7 @@ class TachiyomiImageDecoder(private val resources: ImageSource, private val opti
|
|||||||
maxOf(bitmap.width, bitmap.height) <= GLUtil.maxTextureSize
|
maxOf(bitmap.width, bitmap.height) <= GLUtil.maxTextureSize
|
||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
bitmap.height*1.1 <= GLUtil.maxTextureSize &&
|
!fallbackForLongStrips || bitmap.width < dstWidth && bitmap.height*1.1 <= GLUtil.maxTextureSize
|
||||||
bitmap.width < 1100 || !fallbackForLongStrips
|
|
||||||
) {
|
) {
|
||||||
val hwBitmap = bitmap.copy(Bitmap.Config.HARDWARE, false)
|
val hwBitmap = bitmap.copy(Bitmap.Config.HARDWARE, false)
|
||||||
if (hwBitmap != null) {
|
if (hwBitmap != null) {
|
||||||
|
Reference in New Issue
Block a user