fix a crasher in win32. I don't know if linux crashed, but it should have.

This commit is contained in:
Bill Currie 2001-10-21 03:48:02 +00:00
parent bc5a7f9799
commit e1fc77dd2b

View file

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