Microwindows development under QEMU pc386
Pavel Pisa
ppisa4lists at pikron.com
Sat Jun 23 08:54:32 UTC 2012
On Wednesday 20 June 2012 19:31:06 Pavel Pisa wrote:
> I have been able to compile and run some MWin demos with this
> setup. There are some issues still (mouse cursor background
> is clobbered).
The correction of the mouse pointer background restore problem
is quite simple. Specified pixel format in RTEMS config
specifies to use 8-bit hardware pixel representation.
That is why only green (bits 0-7) are preserved.
When MWin are recompiled with MWPF_TRUECOLOR0888
base pixel type, all work correctly. Actual version of
MWin is compiled with this or MWPF_TRUECOLOR8888
it uses 32-bit data type to hold translated pixel in target
HW color space. It would work correctly even with other
BPP HW, because actual frame buffer sub-driver is selected
at runtime, on 32-bit targets it has even no performance
overhead, only little more space for some local pixel buffers
(i.e. pointer backing store).
Remark to recompile
It is necessary to delete all *.o and *.a in MWin build
to ensure that config change propagates into rebuild binaries.
There is some deficiency in make dependency tracking.
--- a/src/Configs/config.rtems
+++ b/src/Configs/config.rtems
@@ -94,9 +94,10 @@ NANOWM = N
####################################################################
# TBD: Get this information somehow from the BSP itself.
# This is right for PC386
-SCREEN_PIXTYPE = MWPF_PALETTE
+# SCREEN_PIXTYPE = MWPF_PALETTE
# This is right for gumstix
# SCREEN_PIXTYPE = MWPF_TRUECOLOR555
+SCREEN_PIXTYPE = MWPF_TRUECOLOR0888
####################################################################
#
Best wishes,
Pavel
More information about the devel
mailing list