diff --git a/libs/console/client.c b/libs/console/client.c index daf1088cf..cb4665045 100644 --- a/libs/console/client.c +++ b/libs/console/client.c @@ -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); diff --git a/libs/video/targets/vid_sdl.c b/libs/video/targets/vid_sdl.c index 3debb4481..1c7fbba5d 100644 --- a/libs/video/targets/vid_sdl.c +++ b/libs/video/targets/vid_sdl.c @@ -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 diff --git a/libs/video/targets/vid_sdl32.c b/libs/video/targets/vid_sdl32.c index bbdc2e7da..859f66d31 100644 --- a/libs/video/targets/vid_sdl32.c +++ b/libs/video/targets/vid_sdl32.c @@ -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