All pastes #247462 Raw Edit

Stuff

public text v1 · immutable
#247462 ·published 2006-11-13 15:13 UTC
rendered paste body
Index: src/resize.c
===================================================================
--- src/resize.c        (Revision 1161)
+++ src/resize.c        (Arbeitskopie)
@@ -911,8 +911,9 @@
 
                glPushMatrix ();
                glTranslatef (-0.5f, -0.5f, -DEFAULT_Z_CAMERA);
-               glScalef (1.0f / s->width, -1.0f / s->height, 1.0f);
-               glTranslatef (0.0f, -s->height, 0.0f);
+               glScalef (1.0f / s->outputDev[output].width, 
+                         -1.0f / s->outputDev[output].height, 1.0f);
+               glTranslatef (0.0f, -s->outputDev[output].height, 0.0f);
                glDisableClientState (GL_TEXTURE_COORD_ARRAY);
                glEnable (GL_BLEND);