From 0b2faca31312937dc53ff1a108a7c532cb3a094a Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 17 Nov 2002 11:18:18 +0000 Subject: [PATCH] new event code for resize. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@518 --- src/hardware/vga.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hardware/vga.cpp b/src/hardware/vga.cpp index 310b6d15..dac94628 100644 --- a/src/hardware/vga.cpp +++ b/src/hardware/vga.cpp @@ -124,7 +124,8 @@ static void VGA_DoResize(void) { case TEXT_16: /* probably a 16-color text mode, got to detect mono mode somehow */ width<<=3; /* 8 bit wide text font */ - height<<=4; /* 16 bit font height */ + vga.draw.font_height=vga.config.vline_height+1; + height<<=4; if (width>640) width=640; if (height>480) height=480; pitch=width; @@ -141,7 +142,7 @@ void VGA_StartResize(void) { if (!vga.draw.resizing) { vga.draw.resizing=true; /* Start a resize after 50 ms */ - TIMER_RegisterDelayHandler(VGA_DoResize,50); + PIC_AddEvent(VGA_DoResize,500); } }