Fixed the window resizes function in win_video.c, fixes window resizes with non-resizable window (ie. the main window is no longer stuck in 640x480);
Fixed the Force 4:3, Enable EGA/(S)VGA overscan, and Scale options; Fixed a bug regarding register 0 of the SMC FDC37C665 Super I/O chip; Commented out some excess logging.
This commit is contained in:
@@ -396,13 +396,16 @@ void cga_poll(void *p)
|
||||
if (cga->cgamode & 1) x = (cga->crtc[1] << 3) + 16;
|
||||
else x = (cga->crtc[1] << 4) + 16;
|
||||
cga->lastline++;
|
||||
if (x != xsize || (cga->lastline - cga->firstline) != ysize)
|
||||
if ((x != xsize) || ((cga->lastline - cga->firstline) != ysize) || video_force_resize_get())
|
||||
{
|
||||
xsize = x;
|
||||
ysize = cga->lastline - cga->firstline;
|
||||
if (xsize < 64) xsize = 656;
|
||||
if (ysize < 32) ysize = 200;
|
||||
set_screen_size(xsize, (ysize << 1) + 16);
|
||||
|
||||
if (video_force_resize_get())
|
||||
video_force_resize_set(0);
|
||||
}
|
||||
|
||||
if (cga->composite)
|
||||
|
||||
Reference in New Issue
Block a user