nanogui: [nanogui] GrCopyArea


Previous by date: 10 Aug 2004 01:51:11 +0100 GrCopyArea, George Goh
Next by date: 10 Aug 2004 01:51:11 +0100 how can i comprehend the frame of microwindows ??, ZhangWei
Previous in thread: 10 Aug 2004 01:51:11 +0100 GrCopyArea, George Goh
Next in thread:

Subject: Re: [nanogui] GrCopyArea
From: "Greg Haerr" ####@####.####
Date: 10 Aug 2004 01:51:11 +0100
Message-Id: <03c701c47e74$156ba9e0$3eba46a6@winXP>

: I have created an onscreen window(GrNewWindow) which is 640x480, with a
: target area of 300x300. I've also created an offscreen drawing
: area(GrNewPixmap) of 300x600. Now when I try to copy using
: GrCopyArea(window_onscreen, gc, 100,100,300,300, offscreen_area, 0,0,0),
: the area that gets copied is larger than 300x300, in fact, the area of
: the screen written is width 300, height until the bottom of the window.

So you're saying that the width is correct, but the height is 380, 
rather than 300?


: How do I make GrCopyArea only copy the area I want it to, and clip off
: any extra that may exist in the source?


Hmm..  Double check your code, and take a look at the
engine implementation, src/nanox/srvfunc.c::GrCopyArea, and
then engine/devdraw.c::GdBlit.  I'm pretty sure that the width/height
passed to the GrCopyArea call is used to set both the size of the
clipped src area as well as the destination rectangle.

Regards,

Greg


Previous by date: 10 Aug 2004 01:51:11 +0100 GrCopyArea, George Goh
Next by date: 10 Aug 2004 01:51:11 +0100 how can i comprehend the frame of microwindows ??, ZhangWei
Previous in thread: 10 Aug 2004 01:51:11 +0100 GrCopyArea, George Goh
Next in thread:


Powered by ezmlm-browse 0.20.