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>2009-05-20 15:07:34 +0400
committerTon Roosendaal <ton@blender.org>2009-05-20 15:07:34 +0400
commit56b726917d35ac51c86c3fd10580ac740124494d (patch)
tree6dc587f893424789800101c84d460b1f35f54fc2 /source/blender/editors/screen/glutil.c
parentf1286b15a3ce11c1b85b7d387fb7f3e1a243bff5 (diff)
2.5
Fix: Node Editor backdrop drawing messed up viewport, making drawing of UI elements not pixel accurate anymore.
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r--source/blender/editors/screen/glutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c
index e0849bae51f..a81a52fd544 100644
--- a/source/blender/editors/screen/glutil.c
+++ b/source/blender/editors/screen/glutil.c
@@ -591,8 +591,8 @@ void glaDrawPixelsSafe(float x, float y, int img_w, int img_h, int row_w, int fo
void glaDefine2DArea(rcti *screen_rect)
{
- int sc_w= screen_rect->xmax - screen_rect->xmin;
- int sc_h= screen_rect->ymax - screen_rect->ymin;
+ int sc_w= screen_rect->xmax - screen_rect->xmin + 1;
+ int sc_h= screen_rect->ymax - screen_rect->ymin + 1;
glViewport(screen_rect->xmin, screen_rect->ymin, sc_w, sc_h);
glScissor(screen_rect->xmin, screen_rect->ymin, sc_w, sc_h);