Fix marker selection margin ignoring DPI

This commit is contained in:
Campbell Barton
2014-08-12 05:43:24 +10:00
parent bd623d9da3
commit 0219cf468e

View File

@@ -1234,7 +1234,9 @@ static void ed_default_handlers(wmWindowManager *wm, ScrArea *sa, ListBase *hand
/* time space only has this keymap, the others get a boundbox restricted map */
if (sa->spacetype != SPACE_TIME) {
ARegion *ar;
static rcti rect = {0, 10000, 0, 30}; /* same local check for all areas */
/* same local check for all areas */
static rcti rect = {0, 10000, 0, -1};
rect.ymax = (30 * UI_DPI_FAC);
ar = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
if (ar) {
WM_event_add_keymap_handler_bb(handlers, keymap, &rect, &ar->winrct);