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>2004-12-03 21:04:33 +0300
committerTon Roosendaal <ton@blender.org>2004-12-03 21:04:33 +0300
commit4193f1cd7f4d9a961c2015d4de37f7aa7fbb9c9b (patch)
treec3e2b54aa41672e0853351fb974980783f3731e2 /source/blender/src/space.c
parent0d9f06cce44d77b87109edd4f637f48ead773f15 (diff)
Bug fix #1946
Editmode Mesh, edge selectmode, not zbuffer on. Selecting edges didnt give a small disadvantage to the already selected one, making it hard to select edges that are extreme close or on top of each other.
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r--source/blender/src/space.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index ec777721fc0..e21468894ee 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -2781,7 +2781,15 @@ void drawinfospace(ScrArea *sa, void *spacedata)
myortho2(-0.375, (float)(sa->winx)-0.375, -0.375, (float)(sa->winy)-0.375);
draw_area_emboss(sa);
- myortho2(0.0, 1280.0, 0.0, curarea->winy/fac);
+
+ /* restore buttons transform */
+ if(curarea->winx<=1280.0) {
+ fac= ((float)curarea->winx)/1280.0f;
+ myortho2(0.0, 1280.0, 0.0, curarea->winy/fac);
+ }
+ else {
+ myortho2(0.0, (float)curarea->winx, 0.0, (float)curarea->winy);
+ }
sa->win_swap= WIN_BACK_OK;
}