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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-03-13 01:46:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-13 01:46:33 +0400
commit153b63e0fde21730cd54f16a501c18c793256ae2 (patch)
treef6c0939d5f48685783996d82e31002845f4cdae6 /source
parente6cdee370e74ef3e48051ad95a4bc3eba5f804c4 (diff)
style cleanup
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenfont/intern/blf_translation.c6
-rw-r--r--source/blender/blenkernel/intern/writeffmpeg.c4
-rw-r--r--source/blender/editors/interface/interface_style.c4
-rw-r--r--source/blender/editors/space_info/textview.c6
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c4
-rw-r--r--source/blender/editors/space_outliner/outliner_select.c4
-rw-r--r--source/blender/editors/transform/transform.c2
7 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/blenfont/intern/blf_translation.c b/source/blender/blenfont/intern/blf_translation.c
index 236ea89a584..2483c59d3ec 100644
--- a/source/blender/blenfont/intern/blf_translation.c
+++ b/source/blender/blenfont/intern/blf_translation.c
@@ -93,14 +93,14 @@ void BLF_free_unifont(void)
unsigned char *BLF_get_unifont_mono(int *unifont_size_r)
{
#ifdef WITH_INTERNATIONAL
- if(unifont_mono_ttf == NULL) {
+ if (unifont_mono_ttf == NULL) {
const char *fontpath = BLI_get_folder(BLENDER_DATAFILES, "fonts");
if (fontpath) {
char unifont_path[1024];
BLI_snprintf(unifont_path, sizeof(unifont_path), "%s/%s", fontpath, unifont_mono_filename);
- unifont_mono_ttf = (unsigned char*)BLI_file_ungzip_to_mem(unifont_path, &unifont_mono_size);
+ unifont_mono_ttf = (unsigned char *)BLI_file_ungzip_to_mem(unifont_path, &unifont_mono_size);
}
else {
printf("%s: 'fonts' data path not found for international monospace font, continuing\n", __func__);
@@ -119,7 +119,7 @@ unsigned char *BLF_get_unifont_mono(int *unifont_size_r)
void BLF_free_unifont_mono(void)
{
#ifdef WITH_INTERNATIONAL
- if(unifont_mono_ttf)
+ if (unifont_mono_ttf)
MEM_freeN(unifont_mono_ttf);
#else
#endif
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c
index 082ae380070..ad4776c7a2d 100644
--- a/source/blender/blenkernel/intern/writeffmpeg.c
+++ b/source/blender/blenkernel/intern/writeffmpeg.c
@@ -668,9 +668,9 @@ static AVStream *alloc_audio_stream(RenderData *rd, int codec_id, AVFormatContex
const int *p = codec->supported_samplerates;
int best = 0;
int best_dist = INT_MAX;
- for (; *p; p++){
+ for (; *p; p++) {
int dist = abs(st->codec->sample_rate - *p);
- if (dist < best_dist){
+ if (dist < best_dist) {
best_dist = dist;
best = *p;
}
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