display-cg: fix a bug in bopti r5g6b6 for very thin images

This commit is contained in:
Lephe 2021-06-02 11:22:29 +02:00
parent 7b40e1e0d0
commit a9f6c4b622
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,8 @@ _bopti_r5g6b5:
add r3, r5
mov r6, r10
tst r6, r6
bt .r5g6b5_y_end
.r5g6b5_x:
# Copy longwords
@ -76,7 +78,7 @@ _bopti_r5g6b5:
bf.s .r5g6b5_x
add #4, r5
# -
.r5g6b5_y_end:
add r8, r4
dt r7