qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] VGA multirun


From: malc
Subject: [Qemu-devel] VGA multirun
Date: Sun, 31 Oct 2004 18:20:03 +0300 (MSK)

Following fixes multi/double(run|scan) VGA behavior, at least for:
http://www.boblycat.org/~malc/ace.com (2222 bytes)

--- qemu/hw/vga.c       Sun Oct 10 20:52:46 2004
+++ qemu-test-audio-opl-gus/hw/vga.c    Sun Oct 31 18:12:08 2004
@@ -1347,11 +1347,11 @@

     shift_control = (s->gr[0x05] >> 5) & 3;
     double_scan = (s->cr[0x09] & 0x80);
-    if (shift_control > 1) {
-        multi_scan = (s->cr[0x09] & 0x1f);
-    } else {
-        multi_scan = 0;
-    }
+    multi_scan = (s->cr[0x09] & 0x1f);
+    if (!multi_scan)
+        multi_scan = !!double_scan;
+    else
+        multi_scan <<= !!double_scan;
     multi_run = multi_scan;
     if (shift_control != s->shift_control ||
         double_scan != s->double_scan) {

-- 
mailto:address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]