nanogui: X11 drivers for Microwindows


Previous by date: 29 Nov 1999 18:58:49 -0000 GetPalette mods to Nano-X, Greg Haerr
Next by date: 29 Nov 1999 18:58:49 -0000 Re: X11 drivers for Microwindows, Morten Rolland
Previous in thread:
Next in thread: 29 Nov 1999 18:58:49 -0000 Re: X11 drivers for Microwindows, Morten Rolland

Subject: X11 drivers for Microwindows
From: Greg Haerr ####@####.####
Date: 29 Nov 1999 18:58:49 -0000
Message-Id: <796896539E6CD311B0E70060083DFEFB076B2D@NBA-SLAM.CenSoft.COM>

Tony,
	I have integrated the X11 drivers into the Microwindows
codebase, and have found them very useful.  Thanks.

I did find, for some strange reason, that the rgb values in
the PIXELVAL_to_pixel routine to _still_ be reversed
in the 16 bit PF_TRUECOLOR565 mode though, so I
reversed them and now the colors are completely correct.

I've also solved the XFlush() problem (that of not completing
all Xlib i/o before hanging on our select()) by extending the
driver interface to include a scrdev.PreSelect() call that
is called (guess) before the main loop select().  Dan
had contributed a patch to this but it involved #including
X11 in the device-independent main loop.

There's one other annoyance that I haven't solved: 
Your driver waits for a FocusIn event before installing
the colormap, with the result that the microwindows
display is incorrect right after running it, until the mouse
is moved.  I tried changing this to Expose, with no
effect.  Isn't there another event we can wait for,
or install the Colormap right after MapWindow?

I'm going to place the modifed scr_x11.c file on my ftp server,
the XFlush() part won't work until 0.87 is released,
but the color code is better.

	ftp://microwindows.censoft.com/pub/microwindows/X11/scr_x11.c

I should have 0.87 out here early this week.

Greg

Previous by date: 29 Nov 1999 18:58:49 -0000 GetPalette mods to Nano-X, Greg Haerr
Next by date: 29 Nov 1999 18:58:49 -0000 Re: X11 drivers for Microwindows, Morten Rolland
Previous in thread:
Next in thread: 29 Nov 1999 18:58:49 -0000 Re: X11 drivers for Microwindows, Morten Rolland


Powered by ezmlm-browse 0.20.