mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-28 14:42:38 +00:00
common/sys_linux.c:
die if we can't allocate memory for the zone common/vid_glx.c common/vid_x11.c: dump the mode list (always)
This commit is contained in:
parent
2b920bb527
commit
aee1af505d
3 changed files with 6 additions and 0 deletions
|
@ -293,6 +293,10 @@ int main (int c, char **v) {
|
|||
if (j)
|
||||
parms.memsize = (int) (Q_atof(com_argv[j+1]) * 1024 * 1024);
|
||||
parms.membase = malloc (parms.memsize);
|
||||
if (!parms.membase) {
|
||||
printf ("Can't allocate zone memory!\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
parms.basedir = basedir;
|
||||
// caching is disabled by default, use -cachedir to enable
|
||||
|
|
|
@ -542,6 +542,7 @@ void VID_Init(unsigned char *palette)
|
|||
x=vidmodes[i]->hdisplay;
|
||||
y=vidmodes[i]->vdisplay;
|
||||
}
|
||||
printf("%dx%d\n",vidmodes[i]->hdisplay,vidmodes[i]->vdisplay);
|
||||
}
|
||||
// chose the smallest mode that our window fits into;
|
||||
for (i=smallest_mode;
|
||||
|
|
|
@ -599,6 +599,7 @@ void VID_Init (unsigned char *palette)
|
|||
x=vidmodes[i]->hdisplay;
|
||||
y=vidmodes[i]->vdisplay;
|
||||
}
|
||||
printf("%dx%d\n",vidmodes[i]->hdisplay,vidmodes[i]->vdisplay);
|
||||
}
|
||||
// chose the smallest mode that our window fits into;
|
||||
for (i=smallest_mode;
|
||||
|
|
Loading…
Reference in a new issue