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>2019-03-26 13:16:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-26 13:16:47 +0300
commitce3b78c73a7ccc16fdccf7decedb5d1578dfdf0a (patch)
tree87f1a9c41ebe6f74806f1ae76206f1d328c85700 /source/blender/editors/space_info/textview.c
parent5279d118c2ddee0e6fef66aaf78452c1b302dd42 (diff)
Cleanup: style, use braces for editor/spaces
Diffstat (limited to 'source/blender/editors/space_info/textview.c')
-rw-r--r--source/blender/editors/space_info/textview.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c
index a335d6d0bfb..7585cda5e19 100644
--- a/source/blender/editors/space_info/textview.c
+++ b/source/blender/editors/space_info/textview.c
@@ -291,11 +291,13 @@ int textview_draw(TextViewContext *tvc, const int draw, int mval[2], void **mous
xy[0] = x_orig; xy[1] = y_orig;
- if (mval[1] != INT_MAX)
+ if (mval[1] != INT_MAX) {
mval[1] += (tvc->ymin + CONSOLE_DRAW_MARGIN);
+ }
- if (pos_pick)
+ if (pos_pick) {
*pos_pick = 0;
+ }
/* constants for the sequencer context */
cdc.font_id = font_id;
@@ -306,8 +308,9 @@ int textview_draw(TextViewContext *tvc, const int draw, int mval[2], void **mous
/* note, scroll bar must be already subtracted () */
cdc.console_width = (tvc->winx - (CONSOLE_DRAW_MARGIN * 2)) / cdc.cwidth;
/* avoid divide by zero on small windows */
- if (cdc.console_width < 1)
+ if (cdc.console_width < 1) {
cdc.console_width = 1;
+ }
cdc.winx = tvc->winx - CONSOLE_DRAW_MARGIN;
cdc.ymin = tvc->ymin;
cdc.ymax = tvc->ymax;
@@ -341,8 +344,9 @@ int textview_draw(TextViewContext *tvc, const int draw, int mval[2], void **mous
y_prev = xy[1];
- if (draw)
+ if (draw) {
color_flag = tvc->line_color(tvc, fg, bg);
+ }
tvc->line_get(tvc, &ext_line, &ext_len);