Small blitter fix for windows port
This commit is contained in:
@@ -77,6 +77,8 @@ NEWSYM DrawWin256x224x16
|
|||||||
mov esi, [ScreenPtr]
|
mov esi, [ScreenPtr]
|
||||||
mov edi, [SurfBufD]
|
mov edi, [SurfBufD]
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
|
movsx edx, word[resolutn]
|
||||||
|
sub edx,2
|
||||||
.Copying3:
|
.Copying3:
|
||||||
mov ecx,32
|
mov ecx,32
|
||||||
.CopyLoop:
|
.CopyLoop:
|
||||||
@@ -93,7 +95,7 @@ NEWSYM DrawWin256x224x16
|
|||||||
sub edi,512
|
sub edi,512
|
||||||
add esi,64
|
add esi,64
|
||||||
%ifdef __WIN32__
|
%ifdef __WIN32__
|
||||||
cmp eax,239
|
cmp eax,edx
|
||||||
%else
|
%else
|
||||||
cmp eax,223
|
cmp eax,223
|
||||||
%endif
|
%endif
|
||||||
@@ -121,7 +123,7 @@ NEWSYM DrawWin256x224x16
|
|||||||
sub esi,512
|
sub esi,512
|
||||||
add esi,576
|
add esi,576
|
||||||
%ifdef __WIN32__
|
%ifdef __WIN32__
|
||||||
cmp eax,239
|
cmp eax,edx
|
||||||
%else
|
%else
|
||||||
cmp eax,223
|
cmp eax,223
|
||||||
%endif
|
%endif
|
||||||
@@ -274,6 +276,8 @@ NEWSYM DrawWin256x224x32
|
|||||||
mov ax,ds
|
mov ax,ds
|
||||||
mov es,ax
|
mov es,ax
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
|
movsx edx, word[resolutn]
|
||||||
|
sub edx,2
|
||||||
mov esi, [ScreenPtr]
|
mov esi, [ScreenPtr]
|
||||||
mov edi, [SurfBufD]
|
mov edi, [SurfBufD]
|
||||||
movq mm4, [copymaskRB]
|
movq mm4, [copymaskRB]
|
||||||
@@ -309,7 +313,7 @@ NEWSYM DrawWin256x224x32
|
|||||||
sub edi,1024
|
sub edi,1024
|
||||||
sub esi,512
|
sub esi,512
|
||||||
add esi,576
|
add esi,576
|
||||||
cmp eax,239
|
cmp eax,edx
|
||||||
jne .Copying32b
|
jne .Copying32b
|
||||||
popad
|
popad
|
||||||
emms
|
emms
|
||||||
|
|||||||
Reference in New Issue
Block a user