VGA: Use GET_IVT macro instead of raw GET_FARVAR.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 17 May 2009 01:32:27 +0000 (21:32 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 17 May 2009 01:32:27 +0000 (21:32 -0400)
vgasrc/vga.c

index a4a3bef45e7f88859ea9fd0a3fbfbd1df17a4504..b7cddee828e75159de0a3bd33cd7bf196684df4f 100644 (file)
@@ -1761,14 +1761,10 @@ biosfn_save_video_state(u16 CX, u16 ES, u16 BX)
         SET_FARVAR(ES, *(u8*)(BX+0), GET_BDA(video_page));
         BX++;
         /* current font */
-        SET_FARVAR(ES, *(u16*)(BX+0), GET_FARVAR(0, *(u16*)(0x1f * 4)));
-        BX += 2;
-        SET_FARVAR(ES, *(u16*)(BX+0), GET_FARVAR(0, *(u16*)(0x1f * 4 + 2)));
-        BX += 2;
-        SET_FARVAR(ES, *(u16*)(BX+0), GET_FARVAR(0, *(u16*)(0x43 * 4)));
-        BX += 2;
-        SET_FARVAR(ES, *(u16*)(BX+0), GET_FARVAR(0, *(u16*)(0x43 * 4 + 2)));
-        BX += 2;
+        SET_FARVAR(ES, *(u32*)(BX+0), GET_IVT(0x1f).segoff);
+        BX += 4;
+        SET_FARVAR(ES, *(u32*)(BX+0), GET_IVT(0x43).segoff);
+        BX += 4;
     }
     if (CX & 4) {
         /* XXX: check this */