fix the broken sdl/sdl32 hud

This commit is contained in:
Bill Currie 2009-12-23 02:08:49 +00:00 committed by Jeff Teunissen
parent 018a0b3bb6
commit 97f54e22df
3 changed files with 6 additions and 4 deletions

View file

@ -827,13 +827,13 @@ C_Init (void)
con_debuglog = COM_CheckParm ("-condebug");
// The console will get resized, so assume initial size is 320x200
con_data.view = view_new (0, 0, 320, 200, grav_northeast);
console_view = view_new (0, 0, 320, 200, grav_northwest);
say_view = view_new (0, 0, 320, 8, grav_northwest);
notify_view = view_new (0, 8, 320, 32, grav_northwest);
menu_view = view_new (0, 0, 320, 200, grav_center);
hud_view = view_new (0, 0, vid.conwidth, vid.conheight, grav_northeast);
hud_view = view_new (0, 0, 320, 200, grav_northeast);
view_add (con_data.view, say_view);
view_add (con_data.view, notify_view);

View file

@ -110,7 +110,6 @@ VID_Init (unsigned char *palette)
// now know everything we need to know about the buffer
VGA_width = vid.width;
VGA_height = vid.height;
Con_CheckResize (); // Now that we have a window size, fix console
vid.numpages = 1;
vid.colormap8 = vid_colormap;
vid.fullbright = 256 - LittleLong (*((int *) vid.colormap8 + 2048));
@ -123,6 +122,8 @@ VID_Init (unsigned char *palette)
VID_InitBuffers (); // allocate z buffer and surface cache
Con_CheckResize (); // Now that we have a window size, fix console
SDL_ShowCursor (0); // hide the mouse pointer
#ifdef _WIN32

View file

@ -151,7 +151,6 @@ VID_Init (unsigned char *palette)
// now we know everything we need to know about the buffer
VGA_width = vid.width;
VGA_height = vid.height;
Con_CheckResize (); // Now that we have a window size, fix console
vid.numpages = 1;
if (vid_colormap)
VID_MakeColormaps(256 - vid_colormap[16384], vid.palette);
@ -166,6 +165,8 @@ VID_Init (unsigned char *palette)
VID_InitBuffers (); // allocate z buffer and surface cache
Con_CheckResize (); // Now that we have a window size, fix console
SDL_ShowCursor (0); // initialize the mouse
#ifdef _WIN32