There was a small bug in the code for initializing the groprender structure, it
would confuse width and height when setting up the clipping rectangle. I just
committed a fix, and this demo works now.

Quoting Christian Grigis <[EMAIL PROTECTED]>:

> Hello,
> 
> I am having a problem while displaying a bitmap on a rotated display.
> 
> The attached code "bitmap.c" illustrates the problem:
> - a PPM file is created in memory
> - a bitmap is created from it
> - a second bitmap is created, and the first bitmap is pgBitmap'ped into
> it
> - a canvas widget is created, and the second bitmap is pgBitmap'ped into
> it
> 
> If the display is in 0 or 180 degrees before the code is started, and
> rotated to any degrees afterwards, the display is correct. If the
> screen
> is, however, in 90 or 270 degrees rotation before the code is started,
> there is an area on the right of the bitmap that is drawn all black.
> 
> [ The reason the code seems somewhat convoluted is because it
> recreates
>   a sequence of instructions that are done in Waba when an Image object
> is
>   created and displayed on a Graphics object. ]
> 
> Some more little tests seem to indicate that the problem appears only
> when
> the image's width and height are different, and the width of the
> blacked
> area is (width - height).
> I suspect there might be some little bug in the rotation code
> somewhere?
> 
> I am also attaching "rotate.c", the code I am using to test rotations.
> 
> Thank you very much for any help!
> 
> -Christian
> -- 
> Christian Grigis                      |       SMARTDATA SA
> Software Engineer                     |       PSE-A / EPFL
> Phone: +41-(21)-693-84-98             |       CH - 1015 Lausanne
> mailto:[EMAIL PROTECTED]  |       http://www.smartdata.ch
> 
> 
> 



--
Only you can prevent creeping featurism!

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to