fix for icon scaling with the DPI setting

- icons were scaling by the sqrt(dpi)/8.48528, but infact they only need to be scaled by (dpi/72).
- UI_icon_get_width value was being used without multiplying by dpi scale.
This commit is contained in:
2011-08-05 10:45:32 +00:00
parent ad7ea2f892
commit a157112ac5
4 changed files with 13 additions and 10 deletions

View File

@@ -1290,7 +1290,7 @@ static void ui_textedit_set_cursor_pos(uiBut *but, uiHandleButtonData *data, sho
else if(ELEM(but->type, TEX, SEARCH_MENU)) {
startx += 5;
if (but->flag & UI_HAS_ICON)
startx += 16;
startx += UI_DPI_ICON_SIZE;
}
/* mouse dragged outside the widget to the left */