Keymaps: take into account DPI for tweak/drag/pie thresholds.
The intention is to fix a too low default threshold on high DPI screen. Users with high DPI screens that have increased the threshold to fix this or liked the lower threshold will need to lower it again. This is still somewhat of a guess, ideally this would be based on the physical distance travalled, and maybe different per type of input device. However we do not have access to this information, and hope this gives a better default.
This commit is contained in:
@@ -2957,7 +2957,7 @@ static void ui_litem_layout_root_radial(uiLayout *litem)
|
||||
|
||||
ui_item_size(item, &itemw, &itemh);
|
||||
|
||||
ui_item_position(item, x - itemw / 2, y + U.pixelsize * (U.pie_menu_threshold + 9.0f), itemw, itemh);
|
||||
ui_item_position(item, x - itemw / 2, y + U.dpi_fac * (U.pie_menu_threshold + 9.0f), itemw, itemh);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user