Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_widgets.c
| Show First 20 Lines • Show All 2,410 Lines • ▼ Show 20 Lines | if (show_menu_icon) { | ||||
| BLI_assert(but->block->content_hints & UI_BLOCK_CONTAINS_SUBMENU_BUT); | BLI_assert(but->block->content_hints & UI_BLOCK_CONTAINS_SUBMENU_BUT); | ||||
| widget_draw_submenu_tria(but, rect, wcol); | widget_draw_submenu_tria(but, rect, wcol); | ||||
| } | } | ||||
| #ifdef USE_UI_TOOLBAR_HACK | #ifdef USE_UI_TOOLBAR_HACK | ||||
| but->block->aspect = aspect_orig; | but->block->aspect = aspect_orig; | ||||
| #endif | #endif | ||||
| rect->xmin += icon_size + icon_padding; | rect->xmin += round_fl_to_int(icon_size + icon_padding); | ||||
| } | } | ||||
| if (!no_text_padding) { | if (!no_text_padding) { | ||||
| const int text_padding = round_fl_to_int((UI_TEXT_MARGIN_X * U.widget_unit) / | const int text_padding = round_fl_to_int((UI_TEXT_MARGIN_X * U.widget_unit) / | ||||
| but->block->aspect); | but->block->aspect); | ||||
| if (but->editstr) { | if (but->editstr) { | ||||
| rect->xmin += text_padding; | rect->xmin += text_padding; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,994 Lines • Show Last 20 Lines | |||||