diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-18 14:22:17 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-18 14:22:17 +0300 |
commit | bc22e2242a528b7b7917b2a04958adf37e3c45cc (patch) | |
tree | 75c3cf2a82dc005db76ded905efd7d4731224c86 /source/blender/src/drawimasel.c | |
parent | 683b51fe83b3fe0c147c5c07067a442948dcf82d (diff) |
- removed temporal patch from myortho2() in mywindow.c, and changed
all calls to ortho2 with correctness offset of 0.375 instead of 0.5.
this efficiently solves bug in drawing UV lines as reported.
cvS: ----------------------------------------------------------------------
Diffstat (limited to 'source/blender/src/drawimasel.c')
-rw-r--r-- | source/blender/src/drawimasel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/drawimasel.c b/source/blender/src/drawimasel.c index 3c73ca8061e..03ec40a3638 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.375 , (float)ex-0.375, (float)sy-0.375, (float)ey-0.375); } void areaview (void) @@ -151,7 +151,7 @@ void areaview (void) wx = curarea->winrct.xmin; wy = curarea->winrct.ymin; glViewport(wx, wy, curarea->winx, curarea->winy); glScissor(wx, wy, curarea->winx, curarea->winy); - myortho2(-0.5, (float)(curarea->winx)-0.5, -0.5, (float)(curarea->winy)-0.5); + myortho2(-0.375, (float)(curarea->winx)-0.375, -0.375, (float)(curarea->winy)-0.375); } @@ -867,7 +867,7 @@ void drawimaselspace(ScrArea *sa, void *spacedata) simasel= curarea->spacedata.first; /* ortho: xmin xmax, ymin, ymax! */ - myortho2(-0.5, (float)(curarea->winx)-0.5, -0.5, (float)(curarea->winy)-0.5); + myortho2(-0.375, (float)(curarea->winx)-0.375, -0.375, (float)(curarea->winy)-0.375); if (simasel->fase == 0){ checkdir(simasel->dir); |