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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user