Skip to contentSkip to conversation

VGA 2bit mode

Qemu-devel Samuel Thibault 2 participants 3 messages Apr 25, 2008 – Apr 28, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

#2 lore raw
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