libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/cvd_src glwindow.cc


From: Qi Pan
Subject: [libcvd-members] libcvd/cvd_src glwindow.cc
Date: Thu, 06 Aug 2009 13:46:54 +0000

CVSROOT:        /sources/libcvd
Module name:    libcvd
Changes by:     Qi Pan <qpan>   09/08/06 13:46:54

Modified files:
        cvd_src        : glwindow.cc 

Log message:
        add offset to glOrtho for glWindows so that (0,0) is drawn as the top 
left pixel rather than off the display

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd_src/glwindow.cc?cvsroot=libcvd&r1=1.17&r2=1.18

Patches:
Index: glwindow.cc
===================================================================
RCS file: /sources/libcvd/libcvd/cvd_src/glwindow.cc,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- glwindow.cc 21 May 2009 14:51:12 -0000      1.17
+++ glwindow.cc 6 Aug 2009 13:46:54 -0000       1.18
@@ -102,7 +102,7 @@
     glLoadIdentity();
     glColor3f(1.0f,1.0f,1.0f);
     glRasterPos2f(-1, 1);
-    glOrtho(0, size.x, size.y, 0, -1 , 1);
+    glOrtho(-0.375, size.x-0.375, size.y-0.375, -0.375, -1 , 1); //offsets to 
make (0,0) the top left pixel (rather than off the display)
     glPixelZoom(1,-1);
 
     XColor black = {0, 0, 0, 0, 0, 0};




reply via email to

[Prev in Thread] Current Thread [Next in Thread]