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: Ecos / MicroWindows video display question


"Tom Piotrowicz" <piotrowicz@geoperception.com> writes:

> If you are not implementing MicroWindows are you using SVGALib, some
> other library or did you write your own??

For what I need, just writing pixels to the screen via the linear
framebuffer is enough:

    /* This is screen information. */
    si->base_buf = (unsigned char*) current_mode->physical_base_ptr;
    si->scanline = info_block->version >= 0x0300
	? current_mode->linear_bytes_per_scanline :
	current_mode->bytes_per_scanline;
    si->bpp = current_mode->bits_per_pixel / 8;
    si->width = current_mode->x_resolution;
    si->height = current_mode->y_resolution;

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

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