diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-09 20:37:31 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-09 20:55:10 +0300 |
commit | 427c75e4c20b38611d213ca26681a5691be5d6a6 (patch) | |
tree | 9bf3ee3f22e7329c62afd574800a7e4b976e8607 /source/blender/editors/space_outliner | |
parent | 42b462ddd77cb73ad4f39152fc5213c43bbf2d37 (diff) |
Cleanup: avoid some floating point divisions in drawing code
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 042cbfdaf8d..10b248de21d 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1803,10 +1803,10 @@ static void tselem_draw_icon(uiBlock *block, * doesn't work for buttons */ char color[4]; if (UI_icon_get_theme_color(data.icon, (uchar *)color)) { - UI_icon_draw_ex(x, y, data.icon, 1.0f / UI_DPI_FAC, alpha, 0.0f, color, true); + UI_icon_draw_ex(x, y, data.icon, U.inv_dpi_fac, alpha, 0.0f, color, true); } else { - UI_icon_draw_ex(x, y, data.icon, 1.0f / UI_DPI_FAC, alpha, 0.0f, NULL, false); + UI_icon_draw_ex(x, y, data.icon, U.inv_dpi_fac, alpha, 0.0f, NULL, false); } } else { |