nanogui: Re: pixmaps and XOR not working]
Subject:
Re: [nanogui] pixmaps and XOR not working]
From:
"Greg Haerr" ####@####.####
Date:
13 May 2010 13:09:32 -0000
Message-Id: <0b9301caf29d$28b8fe00$6564a8c0@winXP>
: 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 ;
: }
Jim -
Now that I know you're running on desktop X11 we can debug this.
Change the above GrCopyArea last parameter from
GR_FALSE to MWROP_USE_GC_MODE in both
calls. This tells nano-X to use the current GC mode.
Regards,
Greg