Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-22 20:24:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-22 20:24:09 +0400
commitf16f545c6e78f8d677408b566dd2001dbb90e7f8 (patch)
tree9317e997fd7f90effab16b484d153f75f2f80936 /source/blender/editors/interface/interface_widgets.c
parent3fc3c9f3b4003dd26e1df8282942622cbdb9e954 (diff)
style cleanup
also fix example for mesh uv's
Diffstat (limited to 'source/blender/editors/interface/interface_widgets.c')
-rw-r--r--source/blender/editors/interface/interface_widgets.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index 3824dcf0724..2edc2b22e7e 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -1165,11 +1165,13 @@ static void widget_draw_text(uiFontStyle *fstyle, uiWidgetColors *wcol, uiBut *b
if (fstyle->kerning == 1)
BLF_disable(fstyle->uifont_id, BLF_KERNING_DEFAULT);
-
- // ui_rasterpos_safe(x, y, but->aspect);
-// if (but->type==IDPOIN) transopts= 0; // no translation, of course!
-// else transopts= ui_translate_buttons();
-
+
+#if 0
+ ui_rasterpos_safe(x, y, but->aspect);
+ if (but->type == IDPOIN) transopts = 0; // no translation, of course!
+ else transopts = ui_translate_buttons();
+#endif
+
/* cut string in 2 parts - only for menu entries */
if ((but->block->flag & UI_BLOCK_LOOP)) {
if (ELEM5(but->type, SLI, NUM, TEX, NUMSLI, NUMABS) == 0) {
@@ -3135,9 +3137,9 @@ void ui_draw_but(const bContext *C, ARegion *ar, uiStyle *style, uiBut *but, rct
/* no text, with icon */
else if (!but->str[0] && but->icon) {
if (but->flag & UI_ICON_PREVIEW)
- wt= widget_type(UI_WTYPE_MENU_ICON_RADIO); /* no arrows */
+ wt = widget_type(UI_WTYPE_MENU_ICON_RADIO); /* no arrows */
else
- wt= widget_type(UI_WTYPE_MENU_RADIO); /* with arrows */
+ wt = widget_type(UI_WTYPE_MENU_RADIO); /* with arrows */
}
/* with menu arrows */
else