nanogui: Re: pixmaps and XOR not working]


Previous by date: 13 May 2010 00:44:53 -0000 Re: FLTK2, Greg Haerr
Next by date: 13 May 2010 00:44:53 -0000 Re: pixmaps and XOR not working], Greg Haerr
Previous in thread:
Next in thread: 13 May 2010 00:44:53 -0000 Re: pixmaps and XOR not working], Greg Haerr

Subject: Re: [nanogui] pixmaps and XOR not working]
From: Jim Ham ####@####.####
Date: 13 May 2010 00:44:53 -0000
Message-Id: <4BEB4B8E.80502@porcine.com>

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


Previous by date: 13 May 2010 00:44:53 -0000 Re: FLTK2, Greg Haerr
Next by date: 13 May 2010 00:44:53 -0000 Re: pixmaps and XOR not working], Greg Haerr
Previous in thread:
Next in thread: 13 May 2010 00:44:53 -0000 Re: pixmaps and XOR not working], Greg Haerr


Powered by ezmlm-browse 0.20.