UI: Block Safety Not Scaled Correctly
Layout block safety sizes were not scaled correctly with interface scale. Differential Revision: https://developer.blender.org/D9569 Reviewed by Brecht Van Lommel
This commit is contained in:
@@ -465,7 +465,7 @@ void ui_block_bounds_calc(uiBlock *block)
|
||||
|
||||
/* hardcoded exception... but that one is annoying with larger safety */
|
||||
uiBut *bt = block->buttons.first;
|
||||
int xof = (bt && STRPREFIX(bt->str, "ERROR")) ? 10 : 40;
|
||||
int xof = ((bt && STRPREFIX(bt->str, "ERROR")) ? 10 : 40) * U.dpi_fac;
|
||||
|
||||
block->safety.xmin = block->rect.xmin - xof;
|
||||
block->safety.ymin = block->rect.ymin - xof;
|
||||
|
||||
Reference in New Issue
Block a user