rendered paste bodyIndex: src/blurfx.c
===================================================================
--- src/blurfx.c (Revision 1432)
+++ src/blurfx.c (Arbeitskopie)
@@ -3492,7 +3492,9 @@
{
glTranslatef (w->attrib.x, w->attrib.y, 0.0f);
glScalef (attrib->xScale, attrib->yScale, 0.0f);
- glTranslatef (-w->attrib.x, -w->attrib.y, 0.0f);
+ glTranslatef (attrib->xTranslate / attrib->xScale - w->attrib.x,
+ attrib->yTranslate / attrib->yScale - w->attrib.y,
+ 0.0f);
}
// Do we have an decoration vertex array thet does not contain shadows?
@@ -3873,7 +3875,9 @@
{
glTranslatef (w->attrib.x, w->attrib.y, 0.0f);
glScalef (attrib->xScale, attrib->yScale, 0.0f);
- glTranslatef (-w->attrib.x, -w->attrib.y, 0.0f);
+ glTranslatef (attrib->xTranslate / attrib->xScale - w->attrib.x,
+ attrib->yTranslate / attrib->yScale - w->attrib.y,
+ 0.0f);
}
@@ -3983,7 +3987,9 @@
{
glTranslatef (w->attrib.x, w->attrib.y, 0.0f);
glScalef (attrib->xScale, attrib->yScale, 0.0f);
- glTranslatef (-w->attrib.x, -w->attrib.y, 0.0f);
+ glTranslatef (attrib->xTranslate / attrib->xScale - w->attrib.x,
+ attrib->yTranslate / attrib->yScale - w->attrib.y,
+ 0.0f);
}
glGetFloatv (GL_MODELVIEW_MATRIX, mvm);
glPopMatrix ();