Compare commits

...

4 Commits

Author SHA1 Message Date
Raikuha
62014de3ba
Merge 991f6b1908 into 2f4bb7cadb 2024-11-05 05:12:43 +00:00
Raikuha
991f6b1908
Update strings.xml 2024-11-05 02:12:41 -03:00
Raikuha
6f88633ef5
Update TachiyomiImageDecoder.kt 2024-11-05 02:08:19 -03:00
Raikuha
541a29099e
Deem images safe if they're within the view dimensions
Some pages present flickering due to having dimensions that surpass those calculated in SubsamplingScaleImageView.
2024-11-05 02:06:21 -03:00
2 changed files with 2 additions and 3 deletions

View File

@ -56,8 +56,7 @@ class TachiyomiImageDecoder(private val resources: ImageSource, private val opti
maxOf(bitmap.width, bitmap.height) <= GLUtil.maxTextureSize
) {
if (
bitmap.height*1.1 <= GLUtil.maxTextureSize &&
bitmap.width < 1100 || !fallbackForLongStrips
!fallbackForLongStrips || bitmap.width < dstWidth && bitmap.height*1.1 <= GLUtil.maxTextureSize
) {
val hwBitmap = bitmap.copy(Bitmap.Config.HARDWARE, false)
if (hwBitmap != null) {

View File

@ -393,7 +393,7 @@
<string name="pref_show_reading_mode_summary">Briefly show current mode when reader is opened</string>
<string name="pref_display_profile">Custom display profile</string>
<string name="pref_always_use_ssiv_to_decode">Always use SSIV to decode long strip images</string>
<string name="pref_fallback_for_long_strips">Fallback to software when loading long vertical strips</string>
<string name="pref_fallback_for_long_strips">Add safety checks to load vertical strips</string>
<string name="pref_crop_borders">Crop borders</string>
<string name="pref_custom_brightness">Custom brightness</string>
<string name="pref_grayscale">Grayscale</string>