mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
fix a crasher in win32. I don't know if linux crashed, but it should have.
This commit is contained in:
parent
bc5a7f9799
commit
e1fc77dd2b
1 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,11 @@ VID_SetPalette (unsigned char *palette)
|
|||
SDL_SetColors (screen, colors, 0, 256);
|
||||
}
|
||||
|
||||
static void
|
||||
do_screen_buffer (void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
VID_Init (unsigned char *palette)
|
||||
{
|
||||
|
@ -117,6 +122,7 @@ VID_Init (unsigned char *palette)
|
|||
vid.numpages = 1;
|
||||
vid.colormap8 = vid_colormap;
|
||||
vid.fullbright = 256 - LittleLong (*((int *) vid.colormap8 + 2048));
|
||||
vid.do_screen_buffer = do_screen_buffer;
|
||||
VGA_pagebase = vid.buffer = screen->pixels;
|
||||
VGA_rowbytes = vid.rowbytes = screen->pitch;
|
||||
vid.conbuffer = vid.buffer;
|
||||
|
|
Loading…
Reference in a new issue