VESA Video Modes: Difference between revisions

Sync VbeModeBlock member names across text and specification
[unchecked revision][unchecked revision]
(Consistent use of struct names (Names according to the vbe spec.))
(Sync VbeModeBlock member names across text and specification)
Line 7:
<source lang="c">
struct VbeInfoBlock {
char signatureVbeSignature[4]; // == "VESA"
short versionVbeVersion; // == 0x0300 for VBE 3.0
short oemStringOemStringPtr[2]; // isa vbeFarPtr
unsigned char capabilitiesCapabilities[4];
short videomodesVideoModePtr[2]; // isa vbeFarPtr
short totalMemoryTotalMemory; // as # of 64KB blocks
};
 
Line 73:
int depthdiff, bestdepthdiff = 8 >= d ? 8 - d : (d - 8) * 2;
 
strncpy(ctrl->signatureVbeSignature, "VBE2", 4);
intV86(0x10, "ax,es:di", 0x4F00, 0, ctrl); // Get Controller Info
if ( (UInt16)v86.tss.eax != 0x004F ) return best;
1,490

edits