tgx
tgx copied to clipboard
draw Image issue
I have a problem with rendering an image. With a screen size of 64x64, the image is rendered partially .
With a screen size of 128x128, the image is rendered completely and normally
.
The original image itself is
code: image.blitScaledRotated( *bi.img, { bi.img->lx() / 2.f, bi.img->ly() / 2.f }, { p.x, p.y }, scaleFactor, rotAng, []( tgx::RGB32 _src, CanvasColor_t _dest ) -> CanvasColor_t { RGBA src(_src); RGBA dest(_dest); dest.blend_in(src); return (CanvasColor_t)dest; } );