diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-13 01:46:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-13 01:46:33 +0400 |
commit | 153b63e0fde21730cd54f16a501c18c793256ae2 (patch) | |
tree | f6c0939d5f48685783996d82e31002845f4cdae6 /source/blender/editors | |
parent | e6cdee370e74ef3e48051ad95a4bc3eba5f804c4 (diff) |
style cleanup
Diffstat (limited to 'source/blender/editors')
5 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/interface/interface_style.c b/source/blender/editors/interface/interface_style.c index 03805dd0ef8..dd4886a7243 100644 --- a/source/blender/editors/interface/interface_style.c +++ b/source/blender/editors/interface/interface_style.c @@ -331,7 +331,7 @@ void uiStyleInit(void) uiFont *font = U.uifonts.first; uiStyle *style = U.uistyles.first; int monofont_size = datatoc_bmonofont_ttf_size; - unsigned char *monofont_ttf = (unsigned char*)datatoc_bmonofont_ttf; + unsigned char *monofont_ttf = (unsigned char *)datatoc_bmonofont_ttf; /* recover from uninitialized dpi */ if (U.dpi == 0) @@ -410,7 +410,7 @@ void uiStyleInit(void) if (!monofont_ttf) { /* fall back if not found */ monofont_size = datatoc_bmonofont_ttf_size; - monofont_ttf = (unsigned char*)datatoc_bmonofont_ttf; + monofont_ttf = (unsigned char *)datatoc_bmonofont_ttf; } } diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c index 58418f2befd..e53cbdd04af 100644 --- a/source/blender/editors/space_info/textview.c +++ b/source/blender/editors/space_info/textview.c @@ -74,7 +74,7 @@ BLI_INLINE void console_step_sel(ConsoleDrawContext *cdc, const int step) } static void console_draw_sel(const char *str, const int sel[2], const int xy[2], const int str_len_draw, - int cwidth, int lheight, const unsigned char bg_sel[4]) + int cwidth, int lheight, const unsigned char bg_sel[4]) { if (sel[0] <= str_len_draw && sel[1] >= 0) { const int sta = txt_utf8_offset_to_column(str, max_ii(sel[0], 0)); @@ -99,7 +99,7 @@ static int console_wrap_offsets(const char *str, int len, int width, int *lines, *lines = 1; *offsets = MEM_callocN(sizeof(**offsets) * (len * BLI_UTF8_WIDTH_MAX / MAX2(1, width - (BLI_UTF8_WIDTH_MAX - 1)) + 1), - "console_wrap_offsets"); + "console_wrap_offsets"); (*offsets)[0] = 0; for (i = 0, end = width, j = 0; j < len && str[j]; j += BLI_str_utf8_size_safe(str + j)) { @@ -145,7 +145,7 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str /* last part */ ofs += txt_utf8_column_to_offset(str + ofs, - (int)floor((float)cdc->mval[0] / cdc->cwidth)); + (int)floor((float)cdc->mval[0] / cdc->cwidth)); CLAMP(ofs, 0, str_len); *cdc->pos_pick += str_len - ofs; diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index b84f5a4f5ae..fb69757c04d 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -310,7 +310,7 @@ static void restrictbutton_ebone_visibility_cb(bContext *C, void *UNUSED(poin), { EditBone *ebone = (EditBone *)poin2; if (ebone->flag & BONE_HIDDEN_A) { - ebone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL); + ebone->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL); } if (CTX_wm_window(C)->eventstate->ctrl) { @@ -359,7 +359,7 @@ static int group_select_flag(Group *gr) } void restrictbutton_gr_restrict_flag(void *poin, void *poin2, int flag) -{ +{ Scene *scene = (Scene *)poin; GroupObject *gob; Group *gr = (Group *)poin2; diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 46ecfee1528..21bd9bd298e 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -823,8 +823,8 @@ static int do_outliner_item_activate(bContext *C, Scene *scene, ARegion *ar, Spa /* always makes active object */ if (tselem->type != TSE_SEQUENCE && tselem->type != TSE_SEQ_STRIP && tselem->type != TSE_SEQUENCE_DUP) tree_element_set_active_object(C, scene, soops, te, - 1 + (extend != 0 && tselem->type == 0), - recursive && tselem->type == 0 ); + 1 + (extend != 0 && tselem->type == 0), + recursive && tselem->type == 0 ); if (tselem->type == 0) { // the lib blocks /* editmode? */ diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index ca96afb5a5b..77c032b4f25 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -7452,4 +7452,4 @@ bool checkUseLocalCenter_GraphEdit(TransInfo *t) return ((t->around == V3D_LOCAL) && !ELEM3(t->mode, TFM_TRANSLATION, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE)); } -#undef MAX_INFO_LEN
\ No newline at end of file +#undef MAX_INFO_LEN |