All pastes #248207 Raw Edit

Unnamed

public text v1 · immutable
#248207 ·published 2006-11-14 11:20 UTC
rendered paste body
Index: src/resize.c
===================================================================
--- src/resize.c	(Revision 1187)
+++ src/resize.c	(Arbeitskopie)
@@ -910,16 +910,8 @@
 		y1 = rd->currentY - rd->w->input.top;
 		y2 = rd->currentY + rd->currentHeight + rd->w->input.bottom;
 		
-		/* Calculate offset for multihead */
-		x1 -= s->outputDev[output].region.extents.x1;
-		y1 -= s->outputDev[output].region.extents.y1;
-		x2 -= s->outputDev[output].region.extents.x1;
-		y2 -= s->outputDev[output].region.extents.y1;
-
 		glPushMatrix ();
-		glTranslatef (-0.5f, -0.5f, -DEFAULT_Z_CAMERA);
-		glScalef (1.0f / s->outputDev[output].width, -1.0f / s->outputDev[output].height, 1.0f);
-		glTranslatef (0.0f, -s->outputDev[output].height, 0.0f);
+		prepareXCoords(s, output, -DEFAULT_Z_CAMERA);
 		glDisableClientState (GL_TEXTURE_COORD_ARRAY);
 		glEnable (GL_BLEND);