This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Video mode code / eCos demo
- From: "Kumanan" <kumanan at mindless dot com>
- To: "David N. Welton" <davidw at dedasys dot com>
- Cc: "eCos Discussion" <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 11 Aug 2003 12:14:49 -0400
- Subject: Re: [ECOS] Video mode code / eCos demo
- References: <87he4rapd9.fsf@dedasys.com> <m37k5keblb.fsf@miso.calivar.com> <87llu01dka.fsf@dedasys.com>
Hi David,
Just a quick question: In your demo are you using MicroWindows for
framebuffer, or are you setting the video mode directly via ints?
All I want to do is switch my platform to linear 640x480, 16bit mode and
then punch pixels. I'd like to avoid bringing in a large library just to do
that. (Of course, I have not played with MW so I could be way off in my
estimate of how big I think it is :)
Regards,
Kumanan
----- Original Message -----
From: "David N. Welton" <davidw@dedasys.com>
To: "Nick Garnett" <nickg@ecoscentric.com>
Cc: "eCos Discussion" <ecos-discuss@sources.redhat.com>
Sent: Monday, August 11, 2003 10:20 AM
Subject: Re: [ECOS] Video mode code / eCos demo
> Nick Garnett <nickg@ecoscentric.com> writes:
>
> > davidw@dedasys.com (David N. Welton) writes:
>
> > > This one's a bit obscure, but I noticed it by comparing with the
> > > grub code:
>
> > > /* Now trip to the graphics mode. */
> > > if (set_vbe_mode (mode_number | (1 << 14)) != 0x004F)
>
> > > That 1 << 14 (0x4000) lets you use the 'linear framebuffer mode',
> > > which is pretty important if you want to avoid that other, awful
> > > thing where you have to continually select the frame you want to
> > > work in.
>
<snip>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss