mirror of
https://github.com/mihonapp/mihon.git
synced 2025-01-15 12:43:11 +01: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:
parent
701a77a2d7
commit
541a29099e
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user