mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
bigscreen patch from Philippe Troin
This commit is contained in:
parent
2e0b5076a0
commit
4ff2cb88cf
6 changed files with 13 additions and 13 deletions
|
@ -44,7 +44,7 @@
|
|||
#define CYCLE 128
|
||||
|
||||
// !!! if this is changed, it must be changed in r_shared.h too !!!
|
||||
#define MAXHEIGHT 1024
|
||||
#define MAXHEIGHT 4096
|
||||
|
||||
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
||||
#define CACHE_SIZE 32 // used to align key data structures
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
#define MAXWORKINGVERTS (MAXVERTS+4) // max points in an intermediate
|
||||
// polygon (while processing)
|
||||
// !!! if this is changed, it must be changed in d_ifacea.h too !!!
|
||||
#define MAXHEIGHT 1024
|
||||
#define MAXWIDTH 1280
|
||||
#define MAXHEIGHT 4096
|
||||
#define MAXWIDTH 4096
|
||||
#define MAXDIMENSION ((MAXHEIGHT > MAXWIDTH) ? MAXHEIGHT : MAXWIDTH)
|
||||
|
||||
#define SIN_BUFFER_SIZE (MAXDIMENSION+CYCLE)
|
||||
|
|
|
@ -59,8 +59,8 @@ D_WarpScreen (void)
|
|||
byte **row;
|
||||
|
||||
/* FIXME: allocate these arrays properly */
|
||||
byte *rowptr[1024 + AMP2 * 2];
|
||||
int column[1280 + AMP2 * 2];
|
||||
byte *rowptr[MAXHEIGHT + AMP2 * 2];
|
||||
int column[MAXWIDTH + AMP2 * 2];
|
||||
float wratio, hratio;
|
||||
|
||||
w = r_refdef.vrect.width;
|
||||
|
|
|
@ -63,8 +63,8 @@ D_WarpScreen (void)
|
|||
int *turb;
|
||||
int *col;
|
||||
byte **row;
|
||||
byte *rowptr[1024];
|
||||
int column[1280];
|
||||
byte *rowptr[MAXHEIGHT];
|
||||
int column[MAXWIDTH];
|
||||
float wratio, hratio;
|
||||
|
||||
w = r_refdef.vrect.width;
|
||||
|
@ -109,8 +109,8 @@ D_WarpScreen (void)
|
|||
int *turb;
|
||||
int *col;
|
||||
short **row;
|
||||
short *rowptr[1024];
|
||||
int column[1280];
|
||||
short *rowptr[MAXHEIGHT];
|
||||
int column[MAXWIDTH];
|
||||
float wratio, hratio;
|
||||
|
||||
w = r_refdef.vrect.width;
|
||||
|
@ -155,8 +155,8 @@ D_WarpScreen (void)
|
|||
int *turb;
|
||||
int *col;
|
||||
int **row;
|
||||
int *rowptr[1024];
|
||||
int column[1280];
|
||||
int *rowptr[MAXHEIGHT];
|
||||
int column[MAXWIDTH];
|
||||
float wratio, hratio;
|
||||
|
||||
w = r_refdef.vrect.width;
|
||||
|
|
|
@ -908,7 +908,7 @@ R_InitTurb (void)
|
|||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 1280; i++) {
|
||||
for (i = 0; i < MAXWIDTH; i++) {
|
||||
sintable[i] = AMP + sin (i * 3.14159 * 2 / CYCLE) * AMP;
|
||||
intsintable[i] = AMP2 + sin (i * 3.14159 * 2 / CYCLE) * AMP2;
|
||||
// AMP2 not 20
|
||||
|
|
|
@ -836,7 +836,7 @@ CL_Init_Memory (void)
|
|||
else
|
||||
minimum_memory = MINIMUM_MEMORY_LEVELPAK;
|
||||
|
||||
host_mem_size = Cvar_Get ("host_mem_size", "16", CVAR_NONE, NULL,
|
||||
host_mem_size = Cvar_Get ("host_mem_size", "32", CVAR_NONE, NULL,
|
||||
"Amount of memory (in MB) to allocate for the "
|
||||
PROGRAM " heap");
|
||||
if (mem_parm)
|
||||
|
|
Loading…
Reference in a new issue