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.
This commit is contained in:
@@ -2128,8 +2128,13 @@ void drawinfospace(ScrArea *sa, void *spacedata)
|
|||||||
glClearColor(col[0], col[1], col[2], 0.0);
|
glClearColor(col[0], col[1], col[2], 0.0);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
fac= ((float)curarea->winx)/1280.0f;
|
if(curarea->winx<=1280.0) {
|
||||||
myortho2(0.0, 1280.0, 0.0, curarea->winy/fac);
|
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);
|
sprintf(naam, "infowin %d", curarea->win);
|
||||||
block= uiNewBlock(&curarea->uiblocks, naam, UI_EMBOSS, UI_HELV, curarea->win);
|
block= uiNewBlock(&curarea->uiblocks, naam, UI_EMBOSS, UI_HELV, curarea->win);
|
||||||
|
|||||||
Reference in New Issue
Block a user