Import backup from 2004-05-23

This commit is contained in:
josh committed 2017-07-25 22:23:46 -04:00
1 parent a982312d2c
commit 6d941b7b16
12 files changed
+85 -59

No files matched your search

+4 -4
View File
@@ -8,7 +8,7 @@
#include "mm/vmm.h"
ModeInfoBlock video_mode;
dword videoMode = 0; //what video mode # we are in, 0 for console mode
dword videoMode; //what video mode # we are in, 0 for console mode
word *vid_ptr16 = (word *)0xF0000000;
byte *vid_ptr24 = (byte *)0xF0000000;
dword *vid_ptr32 = (dword *)0xF0000000;
@@ -35,14 +35,14 @@ void video_init()
case 32:
video_psetp = &video_psetp32;
}
unsigned int vidPages = video_mode.XResolution * video_mode.YResolution * (video_mode.BitsPerPixel >> 3);
/* unsigned int vidPages = video_mode.XResolution * video_mode.YResolution * (video_mode.BitsPerPixel >> 3);
if (vidPages % 4096)
vidPages = (vidPages >> 12) + 1;
else
vidPages = (vidPages >> 12);
vmm_mapn(0xF0000000, video_mode.PhysBasePtr, vidPages);
*/
}
//Renders a character using stdfont[] as a bitmask