whitespace.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-08-16 06:58:55 +00:00
parent 4d92467e7c
commit 0c7f011f4b
6 changed files with 28 additions and 41 deletions

View file

@ -30,24 +30,24 @@
# include "config.h"
#endif
#include "compat.h"
#include "QF/cvar.h"
#include "QF/render.h"
#include "QF/vid.h"
#include "compat.h"
#include "d_local.h"
#include "r_cvar.h"
#define NUM_MIPS 4
surfcache_t *d_initial_rover;
qboolean d_roverwrapped;
int d_minmip;
float d_scalemip[NUM_MIPS - 1];
qboolean d_roverwrapped;
int d_minmip;
float d_scalemip[NUM_MIPS - 1];
static float basemip[NUM_MIPS - 1] = { 1.0, 0.5 * 0.8, 0.25 * 0.8 };
extern int d_aflatcolor;
extern int d_aflatcolor;
void (*d_drawspans) (espan_t *pspan);
@ -70,42 +70,36 @@ D_Init (void)
VID_InitBuffers ();
}
void
D_CopyRects (vrect_t *prects, int transparent)
{
// this function is only required if the CPU doesn't have direct access to the
// back buffer, and there's some driver interface function that the driver
// doesn't support and requires Quake to do in software (such as drawing the
// console); Quake will then draw into wherever the driver points vid.buffer
// and will call this function before swapping buffers
/*
this function is only required if the CPU doesn't have direct access to the
back buffer, and there's some driver interface function that the driver
doesn't support and requires Quake to do in software (such as drawing the
console); Quake will then draw into wherever the driver points vid.buffer
and will call this function before swapping buffers
*/
}
void
D_EnableBackBufferAccess (void)
{
VID_LockBuffer ();
}
void
D_TurnZOn (void)
{
// not needed for software version
// not needed for software version
}
void
D_DisableBackBufferAccess (void)
{
VID_UnlockBuffer ();
}
void
D_SetupFrame (void)
{
@ -145,7 +139,6 @@ D_SetupFrame (void)
d_aflatcolor = 0;
}
void
D_UpdateRects (vrect_t *prect)
{

View file

@ -30,10 +30,10 @@
# include "config.h"
#endif
#include "QF/render.h"
#include "QF/sys.h"
#include "d_local.h"
#include "QF/render.h"
int d_vrectx, d_vrecty, d_vrectright_particle, d_vrectbottom_particle;
@ -63,7 +63,6 @@ D_Patch (void)
#endif // USE_INTEL_ASM
}
void
D_ViewChanged (void)
{

View file

@ -30,10 +30,10 @@
# include "config.h"
#endif
//#include "client.h"
#include "QF/render.h"
#include "d_local.h"
#include "r_local.h"
#include "QF/render.h"
unsigned char *r_turb_pbase, *r_turb_pdest;
fixed16_t r_turb_s, r_turb_t, r_turb_sstep, r_turb_tstep;
@ -118,7 +118,6 @@ D_DrawTurbulent8Span (void)
}
#endif // !USE_INTEL_ASM
void
Turbulent8 (espan_t *pspan)
{
@ -244,7 +243,6 @@ Turbulent8 (espan_t *pspan)
} while ((pspan = pspan->pnext) != NULL);
}
#ifndef USE_INTEL_ASM
void
D_DrawSpans8 (espan_t *pspan)
@ -372,7 +370,6 @@ D_DrawSpans8 (espan_t *pspan)
}
#endif
#ifndef USE_INTEL_ASM
void
D_DrawZSpans (espan_t *pspan)

View file

@ -30,9 +30,10 @@
# include "config.h"
#endif
#include "QF/render.h"
#include "d_local.h"
#include "r_local.h"
#include "QF/render.h"
#define SKY_SPAN_SHIFT 5
#define SKY_SPAN_MAX (1 << SKY_SPAN_SHIFT)
@ -64,7 +65,6 @@ D_Sky_uv_To_st (int u, int v, fixed16_t *s, fixed16_t *t)
*t = (int) ((temp + 6 * (SKYSIZE / 2 - 1) * end[1]) * 0x10000);
}
void
D_DrawSkyScans8 (espan_t *pspan)
{

View file

@ -30,9 +30,10 @@
# include "config.h"
#endif
#include "d_local.h"
#include "QF/render.h"
#include "d_local.h"
static int sprite_height;
static int minindex, maxindex;
static sspan_t *sprite_spans;
@ -42,8 +43,8 @@ static sspan_t *sprite_spans;
#undef USE_INTEL_ASM //XXX asm pic hack
#endif
#ifndef USE_INTEL_ASM
#ifndef USE_INTEL_ASM
void
D_SpriteDrawSpans (sspan_t *pspan)
{
@ -65,7 +66,7 @@ D_SpriteDrawSpans (sspan_t *pspan)
tdivz8stepu = d_tdivzstepu * 8;
zi8stepu = d_zistepu * 8;
// we count on FP exceptions being turned off to avoid range problems
// we count on FP exceptions being turned off to avoid range problems
izistep = (int) (d_zistepu * 0x8000 * 0x10000);
do {
@ -194,7 +195,6 @@ D_SpriteDrawSpans (sspan_t *pspan)
}
#endif
void
D_SpriteScanLeftEdge (void)
{
@ -249,7 +249,6 @@ D_SpriteScanLeftEdge (void)
} while (i != lmaxindex);
}
void
D_SpriteScanRightEdge (void)
{
@ -324,7 +323,6 @@ D_SpriteScanRightEdge (void)
pspan->count = DS_SPAN_LIST_END; // mark the end of the span list
}
void
D_SpriteCalculateGradients (void)
{
@ -366,7 +364,6 @@ D_SpriteCalculateGradients (void)
bbextentt = (sprite_height << 16) - 1;
}
void
D_DrawSprite (void)
{

View file

@ -32,15 +32,16 @@
#include <stdlib.h>
#include "d_local.h"
#include "QF/qargs.h"
#include "r_local.h"
#include "QF/sys.h"
float surfscale;
qboolean r_cache_thrash; // set if surface cache is thrashing
#include "d_local.h"
#include "r_local.h"
int sc_size;
float surfscale;
qboolean r_cache_thrash; // set if surface cache is thrashing
int sc_size;
surfcache_t *sc_rover, *sc_base;
#define GUARDSIZE 4