mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
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:
parent
c57d252dd4
commit
42ab0a7dbb
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue