Show quoted text 11 lines
AFAIK TextRect Clipping works fine. Including the restoration of the Region, however I will look into it and see if something has been changed or lost in the code.
Show quoted text 14 lines
This is the problem I meant about GTK 1. I could not figure out how to have a Pixmap with an alpha channel use the clipping region. GTK has a clip box, a clip region, and a clip bitmap. ClipBitmaps are used by the alpha channel of any pixmap and it apears that GTK only allows ONE of the clipping's to be set, aka you can have a bitmap OR a clip region, not both. This means that for it to work properly any transparency Masks needs to be converted into a clipping region, and merged witht the existing region to get proper results. I could not figure out how to do this with relative speed, so for the moment I have ignored it. I have since considered, it may be possible to created a Bitmap of the size of the destination, and fill it with the clipping region applied, then blt the clipping mask onto it with the proper offset, and use this new clipping Bitmap as the mask instead. But I haven't tried, and I imagine than on most systems speeds of StretchBlt'ing/BitBlt'ing would decrease dramatically. If you have ideas on how to fix his let me know.. but otherwise you are probably out of luck, unless you want to draw to a buffer first. aka create a temporary Pixmap, draw to it instead, and then copyrect the area you wish. But this will make probably things slower.. not faster.
Andrew
_________________________________________________________________ Get a speedy connection with MSN Broadband.� Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp
