TINYGL: Fixed line breaks.
This commit is contained in:
parent
a5e91722de
commit
6c83f83b6c
1 changed files with 16 additions and 10 deletions
|
@ -190,22 +190,28 @@ public:
|
||||||
FORCEINLINE void tglBlitGeneric(const BlitTransform &transform) {
|
FORCEINLINE void tglBlitGeneric(const BlitTransform &transform) {
|
||||||
if (kDisableTransform) {
|
if (kDisableTransform) {
|
||||||
if ((kDisableBlending || kEnableAlphaBlending) && kFlipVertical == false && kFlipHorizontal == false) {
|
if ((kDisableBlending || kEnableAlphaBlending) && kFlipVertical == false && kFlipHorizontal == false) {
|
||||||
tglBlitRLE<kDisableColoring, kDisableBlending, kEnableAlphaBlending>(transform._destinationRectangle.left, transform._destinationRectangle.top,
|
tglBlitRLE<kDisableColoring, kDisableBlending, kEnableAlphaBlending>(transform._destinationRectangle.left,
|
||||||
transform._sourceRectangle.left, transform._sourceRectangle.top, transform._sourceRectangle.width() , transform._sourceRectangle.height(),
|
transform._destinationRectangle.top, transform._sourceRectangle.left, transform._sourceRectangle.top,
|
||||||
transform._aTint, transform._rTint, transform._gTint, transform._bTint);
|
transform._sourceRectangle.width() , transform._sourceRectangle.height(), transform._aTint,
|
||||||
|
transform._rTint, transform._gTint, transform._bTint);
|
||||||
} else {
|
} else {
|
||||||
tglBlitSimple<kDisableBlending, kDisableColoring, kFlipVertical, kFlipHorizontal>(transform._destinationRectangle.left, transform._destinationRectangle.top,
|
tglBlitSimple<kDisableBlending, kDisableColoring, kFlipVertical, kFlipHorizontal>(transform._destinationRectangle.left,
|
||||||
transform._sourceRectangle.left, transform._sourceRectangle.top, transform._sourceRectangle.width() , transform._sourceRectangle.height(),
|
transform._destinationRectangle.top, transform._sourceRectangle.left, transform._sourceRectangle.top,
|
||||||
|
transform._sourceRectangle.width() , transform._sourceRectangle.height(),
|
||||||
transform._aTint, transform._rTint, transform._gTint, transform._bTint);
|
transform._aTint, transform._rTint, transform._gTint, transform._bTint);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (transform._rotation == 0) {
|
if (transform._rotation == 0) {
|
||||||
tglBlitScale<kDisableBlending, kDisableColoring, kFlipVertical, kFlipHorizontal>(transform._destinationRectangle.left, transform._destinationRectangle.top,
|
tglBlitScale<kDisableBlending, kDisableColoring, kFlipVertical, kFlipHorizontal>(transform._destinationRectangle.left,
|
||||||
transform._destinationRectangle.width(), transform._destinationRectangle.height(), transform._sourceRectangle.left, transform._sourceRectangle.top, transform._sourceRectangle.width() , transform._sourceRectangle.height(), transform._aTint, transform._rTint, transform._gTint, transform._bTint);
|
transform._destinationRectangle.top, transform._destinationRectangle.width(), transform._destinationRectangle.height(),
|
||||||
|
transform._sourceRectangle.left, transform._sourceRectangle.top, transform._sourceRectangle.width(), transform._sourceRectangle.height(),
|
||||||
|
transform._aTint, transform._rTint, transform._gTint, transform._bTint);
|
||||||
} else {
|
} else {
|
||||||
tglBlitRotoScale<kDisableBlending, kDisableColoring, kFlipVertical, kFlipHorizontal>(transform._destinationRectangle.left, transform._destinationRectangle.top,
|
tglBlitRotoScale<kDisableBlending, kDisableColoring, kFlipVertical, kFlipHorizontal>(transform._destinationRectangle.left,
|
||||||
transform._destinationRectangle.width(), transform._destinationRectangle.height(), transform._sourceRectangle.left, transform._sourceRectangle.top, transform._sourceRectangle.width() , transform._sourceRectangle.height(), transform._rotation,
|
transform._destinationRectangle.top, transform._destinationRectangle.width(), transform._destinationRectangle.height(),
|
||||||
transform._originX, transform._originY, transform._aTint, transform._rTint, transform._gTint, transform._bTint);
|
transform._sourceRectangle.left, transform._sourceRectangle.top, transform._sourceRectangle.width(),
|
||||||
|
transform._sourceRectangle.height(), transform._rotation, transform._originX, transform._originY, transform._aTint,
|
||||||
|
transform._rTint, transform._gTint, transform._bTint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue