use define for text offset & seletion.
[blender.git] / source / blender / editors / interface / interface_widgets.c
index 42ae9c121771b3d8ef72c06337755b27cd5d1382..18c462b98a786c081c60d88f450f358ee2d2ceb9 100644 (file)
@@ -1325,11 +1325,11 @@ static void widget_draw_text_icon(uiFontStyle *fstyle, uiWidgetColors *wcol, uiB
                        rect->xmin += (int)(0.8f * BLI_rcti_size_y(rect));
 
                        if (but->editstr || (but->flag & UI_TEXT_LEFT)) {
-                               rect->xmin += (0.4f * U.widget_unit) / but->block->aspect;
+                               rect->xmin += (UI_TEXT_MARGIN_X * U.widget_unit) / but->block->aspect;
                        }
                }
                else if ((but->flag & UI_TEXT_LEFT)) {
-                       rect->xmin += (0.4f * U.widget_unit) / but->block->aspect;
+                       rect->xmin += (UI_TEXT_MARGIN_X * U.widget_unit) / but->block->aspect;
                }
                
                /* unlink icon for this button type */