diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-01-24 17:55:04 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-01-24 17:55:04 +0400 |
commit | 4d50d3ac43f6904a9c2ebb05d78a098df7350fa0 (patch) | |
tree | 95f0e0fe0d5920dd9a985b12d9d1ef44b0f99771 /source/blender/editors | |
parent | 7803b51b424fb90e40089003a3d9f25318097fe8 (diff) |
Tiles highlight shall work fine with border render now
Before it was some offset from actual tile pixels.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_image/image_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c index b1da3adf4f1..ba4f8287cd7 100644 --- a/source/blender/editors/space_image/image_draw.c +++ b/source/blender/editors/space_image/image_draw.c @@ -110,8 +110,8 @@ static void draw_render_info(Scene *scene, Image *ima, ARegion *ar, float zoomx, glScalef(zoomx, zoomy, 1.0f); if (scene->r.mode & R_BORDER) { - glTranslatef(-scene->r.border.xmin * scene->r.xsch * scene->r.size / 100.0f, - -scene->r.border.ymin * scene->r.ysch * scene->r.size / 100.0f, + glTranslatef((int)(-scene->r.border.xmin * scene->r.xsch * scene->r.size / 100.0f), + (int)(-scene->r.border.ymin * scene->r.ysch * scene->r.size / 100.0f), 0.0f); } |