1
0
Fork 0

new event code for resize.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@518
This commit is contained in:
Sjoerd van der Berg 2002-11-17 11:18:18 +00:00
parent 64540317fa
commit 0b2faca313

View file

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