mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fixed: Building with NOASM defined no longer worked, because the DrawSlab routines in a.asm conflicted with the ones in r_draw.cpp.
SVN r3194 (trunk)
This commit is contained in:
parent
37aab20cb3
commit
d642c5b1b0
3 changed files with 18 additions and 10 deletions
|
@ -29,8 +29,8 @@
|
|||
%define mvlineasm1 _mvlineasm1
|
||||
%define mvlineasm4 _mvlineasm4
|
||||
|
||||
%define R_SetupDrawSlab _R_SetupDrawSlab
|
||||
%define R_DrawSlab _R_DrawSlab
|
||||
%define R_SetupDrawSlabA _R_SetupDrawSlabA
|
||||
%define R_DrawSlabA _R_DrawSlabA
|
||||
%endif
|
||||
|
||||
EXTERN ylookup ; near
|
||||
|
@ -79,11 +79,11 @@ lastslabcolormap:
|
|||
|
||||
SECTION .text
|
||||
|
||||
GLOBAL R_SetupDrawSlab
|
||||
GLOBAL @R_SetupDrawSlab@4
|
||||
R_SetupDrawSlab:
|
||||
GLOBAL R_SetupDrawSlabA
|
||||
GLOBAL @R_SetupDrawSlabA@4
|
||||
R_SetupDrawSlabA:
|
||||
mov ecx, [esp+4]
|
||||
@R_SetupDrawSlab@4:
|
||||
@R_SetupDrawSlabA@4:
|
||||
cmp [lastslabcolormap], ecx
|
||||
je .done
|
||||
mov [lastslabcolormap], ecx
|
||||
|
@ -591,8 +591,8 @@ align 16
|
|||
;***************************** Voxel Slabs *******************************
|
||||
;*************************************************************************
|
||||
|
||||
GLOBAL R_DrawSlab
|
||||
R_DrawSlab:
|
||||
GLOBAL R_DrawSlabA
|
||||
R_DrawSlabA:
|
||||
push ebx
|
||||
push ebp
|
||||
push esi
|
||||
|
|
|
@ -1363,12 +1363,12 @@ void R_FillSpan (void)
|
|||
#ifndef X86_ASM
|
||||
static const BYTE *slabcolormap;
|
||||
|
||||
extern "C" void R_SetupDrawSlab(const BYTE *colormap)
|
||||
extern "C" void R_SetupDrawSlabC(const BYTE *colormap)
|
||||
{
|
||||
slabcolormap = colormap;
|
||||
}
|
||||
|
||||
extern "C" void STACK_ARGS R_DrawSlab(int dx, fixed_t v, int dy, fixed_t vi, const BYTE *vptr, BYTE *p)
|
||||
extern "C" void STACK_ARGS R_DrawSlabC(int dx, fixed_t v, int dy, fixed_t vi, const BYTE *vptr, BYTE *p)
|
||||
{
|
||||
int x;
|
||||
const BYTE *colormap = slabcolormap;
|
||||
|
|
|
@ -216,6 +216,14 @@ void R_FillColumnP (void);
|
|||
void R_FillColumnHorizP (void);
|
||||
void R_FillSpan (void);
|
||||
|
||||
#ifdef X86_ASM
|
||||
#define R_SetupDrawSlab R_SetupDrawSlabA
|
||||
#define R_DrawSlab R_DrawSlabA
|
||||
#else
|
||||
#define R_SetupDrawSlab R_SetupDrawSlabC
|
||||
#define R_DrawSlab R_DrawSlabC
|
||||
#endif
|
||||
|
||||
extern "C" void R_SetupDrawSlab(const BYTE *colormap);
|
||||
extern "C" void STACK_ARGS R_DrawSlab(int dx, fixed_t v, int dy, fixed_t vi, const BYTE *vptr, BYTE *p);
|
||||
|
||||
|
|
Loading…
Reference in a new issue