From 25165da42d415a8310a98475db5cb4d7b68d5a7e Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 3 Dec 2004 16:32:24 +0000 Subject: [PATCH] Fixed the very annoying display of User Settings Menu when Blender window is wider than 1280 pixels. It now keeps scale at 100% then, without zoom. --- source/blender/src/space.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 26f59b0a029..ec777721fc0 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -2128,8 +2128,13 @@ void drawinfospace(ScrArea *sa, void *spacedata) glClearColor(col[0], col[1], col[2], 0.0); glClear(GL_COLOR_BUFFER_BIT); - fac= ((float)curarea->winx)/1280.0f; - myortho2(0.0, 1280.0, 0.0, curarea->winy/fac); + 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); + } sprintf(naam, "infowin %d", curarea->win); block= uiNewBlock(&curarea->uiblocks, naam, UI_EMBOSS, UI_HELV, curarea->win);