Update of /cvsroot/libufo/ufo-0.5/src/gl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29796
Modified Files:
ugl_graphics.cpp
Log Message:
Fixed y coordinate in mapToDevice, mapFromDevice (thanks Andreas)
Index: ugl_graphics.cpp
===================================================================
RCS file: /cvsroot/libufo/ufo-0.5/src/gl/ugl_graphics.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** ugl_graphics.cpp 21 Jan 2006 17:11:53 -0000 1.18
--- ugl_graphics.cpp 25 Mar 2006 15:51:11 -0000 1.19
***************
*** 144,148 ****
// y-flip
! return URectangle(vport[0] + rect.x, vport[1] + vport[3] - rect.y - rect.h, rect.w, rect.h);
}
--- 144,148 ----
// y-flip
! return URectangle(vport[0] + rect.x, vport[1] + vport[3] - rect.y - rect.h + 1, rect.w, rect.h);
}
***************
*** 155,159 ****
// this is simply wrong
// y-flip
! return URectangle(rect.x - vport[0], - vport[1] - vport[3] + rect.y + rect.h, rect.w, rect.h);
}
--- 155,159 ----
// this is simply wrong
// y-flip
! return URectangle(rect.x - vport[0], - vport[1] - vport[3] + rect.y + rect.h - 1, rect.w, rect.h);
}
|