This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Video mode code / eCos demo


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]