qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] VGA 2bit mode
@ 2008-04-25 18:04 Samuel Thibault
  2008-04-28 10:30 ` [Qemu-devel] " Samuel Thibault
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2008-04-25 18:04 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: VGA 2bit mode
  2008-04-25 18:04 [Qemu-devel] VGA 2bit mode Samuel Thibault
@ 2008-04-28 10:30 ` Samuel Thibault
  2008-04-28 14:03   ` Stuart Brady
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2008-04-28 10:30 UTC (permalink / raw)
  To: qemu-devel

Answering to myself:

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;
> 
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Re: VGA 2bit mode
  2008-04-28 10:30 ` [Qemu-devel] " Samuel Thibault
@ 2008-04-28 14:03   ` Stuart Brady
  0 siblings, 0 replies; 3+ messages in thread
From: Stuart Brady @ 2008-04-28 14:03 UTC (permalink / raw)
  To: qemu-devel

On Mon, Apr 28, 2008 at 11:30:06AM +0100, Samuel Thibault wrote:
> Answering to myself:
> 
> > 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. :-)
-- 
Stuart Brady

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-28 14:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-25 18:04 [Qemu-devel] VGA 2bit mode Samuel Thibault
2008-04-28 10:30 ` [Qemu-devel] " Samuel Thibault
2008-04-28 14:03   ` Stuart Brady

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).