Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2003-11-13 00:14:30 +0300
committerTon Roosendaal <ton@blender.org>2003-11-13 00:14:30 +0300
commit1c8ae70249a1576b60fe2875f29f2ba0340dc287 (patch)
treeb487c274ced2bae7e7a3a41908b4ac9664b812df /source/blender/src/drawimasel.c
parente9d9a7282eaf15e09698d5fc7d2ef9f4badeaaae (diff)
- further cleanup of window matrix code. Now ALL 2d ortho calls are
using an identical offset; which is 0.375 and official recommended by OpenGL. This to further investigate the AA font errors on some systems with ATI cards.
Diffstat (limited to 'source/blender/src/drawimasel.c')
-rw-r--r--source/blender/src/drawimasel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawimasel.c b/source/blender/src/drawimasel.c
index 2e371bcda1f..3c73ca8061e 100644
--- a/source/blender/src/drawimasel.c
+++ b/source/blender/src/drawimasel.c
@@ -142,7 +142,7 @@ void viewgate(short sx, short sy, short ex, short ey)
wx = curarea->winrct.xmin; wy = curarea->winrct.ymin;
glViewport(wx+sx, wy+sy, (wx+ex )-(wx+sx)+1, (wy+ey )-(wy+sy)+1);
glScissor(wx+sx, wy+sy, (wx+ex )-(wx+sx)+1, (wy+ey )-(wy+sy)+1);
- myortho2((float)sx+0.5 , (float)ex+0.5, (float)sy+0.5, (float)ey+0.5);
+ myortho2((float)sx-0.5 , (float)ex-0.5, (float)sy-0.5, (float)ey-0.5);
}
void areaview (void)