I have successfully ported my app from X Windows to nano-X. There are
still a couple of issues, the most important is the GR_MODE_XOR doesn't
seem to work with GrCopyArea(...). It seems to use GR_MODE_COPY
instead.
Here is the chunk of code that does the XOR.

    if ((Chart.OldPosition != NewPosition) || (oldpxm != newpxm ) ) {
        GrSetGCMode( gc, GR_MODE_XOR ) ;
GrCopyArea( win, gc, Chart.OldPosition, DIAMONDYSTART+BORDER, 29, 37, \
            *oldpxm, 0, 0, GR_FALSE ) ;
        GrCopyArea( win, gc, NewPosition, DIAMONDYSTART+BORDER, 29, 37, \
            *newpxm, 0, 0, GR_FALSE ) ;
        GrSetGCMode( gc, GR_MODE_COPY ) ;
        Chart.OldPosition = NewPosition ;
        oldpxm = newpxm ;
        }

There is one other place in the code that uses GrCopyArea() and XOR, and
it shows the same behavior. Different pixmaps, but the result is the
same - GR_MODE_COPY apparently.

The pixmaps that contain the sprite seem to be OK - I see the sprite in
the right place with the colors that would be correct if XORed. This is
different behavior than when I was using the X translation library where
all I saw on the screen was a horizontal black line at the top of the
area where the sprite should have been.

Maybe I can help fix this if you give me a couple of clues on where to
look.

Regards,

Jim Ham





No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.819 / Virus Database: 271.1.1/2869 - Release Date: 05/11/10 
23:26:00

---------------------------------------------------------------------
To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org
For additional commands, e-mail: nanogui-h...@linuxhacker.org

Reply via email to