Ensure consize is correct in the software renderers.

The software renderers force the console size to be the same as the window
size (no scaling), but they weren't telling the console of the resize.
oops. Fixes the crash when running the software renderers with default
sizes.
This commit is contained in:
Bill Currie 2011-06-14 17:54:53 +09:00
parent c57d252dd4
commit 42ab0a7dbb
2 changed files with 4 additions and 0 deletions

View file

@ -34,6 +34,7 @@ static __attribute__ ((used)) const char rcsid[] =
#include <stdlib.h>
#include <math.h>
#include "QF/console.h"
#include "QF/sys.h"
#include "QF/vid.h"
@ -47,6 +48,7 @@ VID_InitBuffers (void)
// No console scaling in the sw renderer
vid.conwidth = vid.width;
vid.conheight = vid.height;
Con_CheckResize ();
// Calculate the sizes we want first
buffersize = vid.rowbytes * vid.height;

View file

@ -31,6 +31,7 @@
static __attribute__ ((used)) const char rcsid[] =
"$Id$";
#include "QF/console.h"
#include "QF/cvar.h"
#include "QF/qargs.h"
#include "QF/sys.h"
@ -211,6 +212,7 @@ VID_InitBuffers (void)
// No console scaling in the sw renderer
vid.conwidth = vid.width;
vid.conheight = vid.height;
Con_CheckResize ();
// Calculate the sizes we want first
buffersize = vid.rowbytes * vid.height;