Skip to content

Commit

Permalink
Fix potato and low detail
Browse files Browse the repository at this point in the history
  • Loading branch information
viti95 committed Oct 1, 2024
1 parent 54be5dd commit 1a840e7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions FASTDOOM/planar6.asm
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ patchCentery1:

add edi,[_dc_x]
lea esi,[esi+eax+0x64]
lea esi,[esi+eax+0x64-(SCREENHEIGHT/2)]

mov eax,[_dc_colormap]

add esi,ebp

jmp [scalecalls+4+ebp*4]
doneps:
pop ebp
Expand Down Expand Up @@ -128,6 +130,8 @@ CODE_SYM_DEF R_DrawColumnPotatoDirect
mov esi,[_dc_source]
mov eax,[_dc_colormap]

lea esi,[esi+ebp-(SCREENHEIGHT/2)]

jmp [scalecalls+4+ebp*4]

donep:
Expand Down Expand Up @@ -172,10 +176,12 @@ patchCentery2:

mov esi,[_dc_source]
lea esi,[esi+eax+0x64]
lea esi,[esi+eax+0x64-(SCREENHEIGHT/2)]

mov eax,[_dc_colormap]

add esi,ebp

jmp [scalecalls+4+ebp*4]

donels:
Expand Down Expand Up @@ -216,6 +222,8 @@ CODE_SYM_DEF R_DrawColumnLowDirect
mov esi,[_dc_source]
mov eax,[_dc_colormap]

lea esi,[esi+ebp-(SCREENHEIGHT/2)]

jmp [scalecalls+4+ebp*4]

donel:
Expand Down

0 comments on commit 1a840e7

Please sign in to comment.