diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-16 03:53:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-16 03:53:08 +0300 |
commit | 868573451f8bfacac25b1b6d53ff05e831508087 (patch) | |
tree | 60b8dd29fcc2648570acea440f4a2690f17b1d93 /source/blender/editors/space_sequencer | |
parent | f06a6e92bc5ee8f77ee9fedd77c7c307964bc708 (diff) |
Cleanup: use unsigned char for UI_view2d_text_cache_add
Avoids casts when used with other UI code
where the color is often unsigned.
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c index ef192f6c9db..864e518f182 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.c +++ b/source/blender/editors/space_sequencer/sequencer_draw.c @@ -542,7 +542,7 @@ static void draw_seq_handle(View2D *v2d, } if ((G.moving & G_TRANSFORM_SEQ) || (seq->flag & whichsel)) { - const char col[4] = {255, 255, 255, 255}; + const uchar col[4] = {255, 255, 255, 255}; char numstr[32]; size_t numstr_len; @@ -574,7 +574,7 @@ static void draw_seq_text(View2D *v2d, char str[32 + FILE_MAX]; size_t str_len; const char *name = seq->name + 2; - char col[4]; + uchar col[4]; /* note, all strings should include 'name' */ if (name[0] == '\0') { |