diff options
author | Ton Roosendaal <ton@blender.org> | 2011-06-21 17:02:21 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-06-21 17:02:21 +0400 |
commit | 5dd76a3f4e1c6df77177d7751050784f8ee7a600 (patch) | |
tree | efc88ac9712244c68aa55ac7dd4a287310630980 /source/blender | |
parent | 2145005e5e3d9618982b25047bf803a3433fe0a3 (diff) |
1 pixel tweak to have outliner icons + selection circles align
for default DPI. Problem now is that icons/text are scaling
and drawing with pixel units, whilst other items draw subpixel.
This makes not every dpi size result in perfect aligning yet.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_outliner/outliner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index 57dec68f68f..0ce6b5d2ce2 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -4737,7 +4737,7 @@ static void outliner_draw_tree_element(bContext *C, uiBlock *block, Scene *scene if(!(ELEM(tselem->type, TSE_RNA_PROPERTY, TSE_RNA_ARRAY_ELEM))) { // icons a bit higher - tselem_draw_icon(block, xmax, (float)startx+offsx, (float)*starty+2*ufac, tselem, te, 1.0f); + tselem_draw_icon(block, xmax, (float)startx+offsx - 0.5f*ufac, (float)*starty+2.0f*ufac, tselem, te, 1.0f); offsx+= UI_UNIT_X; } |