I'm currently using the old Gapi3.01 and have come across a bug .. I believe. Can anybody repro this and if so does anybody know if it's fixed in 3.5? Thanks and here is the code:
The only important thing to look at here is the desLocation which is a RECT( 0, 0, 25, 25 ) and the surface which is sized at ( 0, 0, 15, 20 ). I'm using the blt to stretch the image out to fill 25x25 pixels. This works great until I rotate the image:
This now draws the image at it's correct size rotated( 15x20 ). Did I just miss something in the documentation or is this a bug?
thanks again..Kelesis
- Code:
pBackBuffer->Blt( &destLocation;, surface, NULL, m_BlitFlags | ((surface->HasColorKey() )?GDBLT_KEYSRC:0), &m;_BlitFX );
The only important thing to look at here is the desLocation which is a RECT( 0, 0, 25, 25 ) and the surface which is sized at ( 0, 0, 15, 20 ). I'm using the blt to stretch the image out to fill 25x25 pixels. This works great until I rotate the image:
- Code:
m_BlitFX.nRotationAngle = (LONG)(m_fCurrentRotation * 100);
m_BlitFlags = GDBLT_ROTATIONANGLE;
This now draws the image at it's correct size rotated( 15x20 ). Did I just miss something in the documentation or is this a bug?
thanks again..Kelesis