mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2025-09-09 12:03:27 -04:00
Libimg: fixed a bug when rotating images smaller than 2 pixels
This commit is contained in:
parent
92f9d76f14
commit
b1a1691b84
@ -1053,6 +1053,8 @@ endl
|
|||||||
|
|
||||||
test [_flip_kind], FLIP_VERTICAL
|
test [_flip_kind], FLIP_VERTICAL
|
||||||
jz .dont_flip_vert
|
jz .dont_flip_vert
|
||||||
|
cmp dword [ebx + Image.Height], 2
|
||||||
|
jl .dont_flip_vert
|
||||||
|
|
||||||
imul eax, ecx
|
imul eax, ecx
|
||||||
sub eax, [scanline_len]
|
sub eax, [scanline_len]
|
||||||
@ -1101,6 +1103,8 @@ endl
|
|||||||
|
|
||||||
test [_flip_kind], FLIP_HORIZONTAL
|
test [_flip_kind], FLIP_HORIZONTAL
|
||||||
jz .exit
|
jz .exit
|
||||||
|
cmp dword [ebx + Image.Width], 2
|
||||||
|
jl .exit
|
||||||
|
|
||||||
mov ecx, [ebx + Image.Height]
|
mov ecx, [ebx + Image.Height]
|
||||||
mov eax, [ebx + Image.Type]
|
mov eax, [ebx + Image.Type]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user