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:
Bill Currie 2000-05-15 00:12:38 +00:00
parent 2b920bb527
commit aee1af505d
3 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;