VGA 2bit mode
Hello,
I don't have a VGA book right here to check, but I don't understand vga_draw_line2_:
d += BPP * 8;
s += 4;i.e. 4 bytes for 8 pixels and vga_draw_line4_:
d += BPP * 8;
s += 4;i.e. 4 bytes for 8 pixels too. Does VGA 2bit mode voluntarily waste memory?
Samuel
Answering to myself:
Quoted 6 lines · Samuel Thibault, le Fri 25 Apr 2008 19:04:06 +0100, a écrit :
I don't have a VGA book right here to check, but I don't understand
vga_draw_line2_:d += BPP * 8; s += 4;
Quoted 7 lines
i.e. 4 bytes for 8 pixels and
vga_draw_line4_:d += BPP * 8; s += 4;i.e. 4 bytes for 8 pixels too. Does VGA 2bit mode voluntarily waste memory?
Looks like it does, yes.
Samuel
Quoted 5 lines · Samuel Thibault
Answering to myself:
Quoted 1 line
Does VGA 2bit mode voluntarily waste memory?
Looks like it does, yes.
Of course, if the comment explaining this were not missing, you would not need to ask the question. :-)
Signature · 1 line
Stuart Brady