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>2020-02-14 05:58:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-14 05:58:58 +0300
commit489cecb9548337e767dee3b1b1828e03835aa0b1 (patch)
tree60ed7e579cb20a8bddd0931b9f34d3b105c80e3a /source/blender/editors/space_info
parent69be8039e80f55760ddc652bf79240d9d5ab38bc (diff)
Cleanup: change textview 'unsigned char' to 'uchar'
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/info_draw.c8
-rw-r--r--source/blender/editors/space_info/textview.c16
2 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/editors/space_info/info_draw.c b/source/blender/editors/space_info/info_draw.c
index d0ff9495a74..1c56e17054b 100644
--- a/source/blender/editors/space_info/info_draw.c
+++ b/source/blender/editors/space_info/info_draw.c
@@ -43,11 +43,11 @@
#include "GPU_framebuffer.h"
static int report_line_data(struct TextViewContext *tvc,
- unsigned char fg[4],
- unsigned char bg[4],
+ uchar fg[4],
+ uchar bg[4],
int *icon,
- unsigned char icon_fg[4],
- unsigned char icon_bg[4])
+ uchar icon_fg[4],
+ uchar icon_bg[4])
{
Report *report = (Report *)tvc->iter;
diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c
index aeec1e30e34..93283c349ec 100644
--- a/source/blender/editors/space_info/textview.c
+++ b/source/blender/editors/space_info/textview.c
@@ -79,7 +79,7 @@ static void console_draw_sel(const char *str,
const int xy[2],
const int str_len_draw,
TextViewDrawState *tds,
- const unsigned char bg_sel[4])
+ const uchar bg_sel[4])
{
const int sel[2] = {tds->sel[0], tds->sel[1]};
const int cwidth = tds->cwidth;
@@ -144,12 +144,12 @@ static int console_wrap_offsets(const char *str, int len, int width, int *lines,
static bool console_draw_string(TextViewDrawState *tds,
const char *str,
int str_len,
- const unsigned char fg[4],
- const unsigned char bg[4],
+ const uchar fg[4],
+ const uchar bg[4],
int icon,
- const unsigned char icon_fg[4],
- const unsigned char icon_bg[4],
- const unsigned char bg_sel[4])
+ const uchar icon_fg[4],
+ const uchar icon_bg[4],
+ const uchar bg_sel[4])
{
int tot_lines; /* Total number of lines for wrapping. */
int *offsets; /* Offsets of line beginnings for wrapping. */
@@ -325,7 +325,7 @@ int textview_draw(TextViewContext *tvc,
int xy[2];
/* Disable selection by. */
int sel[2] = {-1, -1};
- unsigned char fg[4], bg[4], icon_fg[4], icon_bg[4];
+ uchar fg[4], bg[4], icon_fg[4], icon_bg[4];
int icon = 0;
const int font_id = blf_mono_font;
@@ -383,7 +383,7 @@ int textview_draw(TextViewContext *tvc,
}
if (tvc->begin(tvc)) {
- unsigned char bg_sel[4] = {0};
+ uchar bg_sel[4] = {0};
if (do_draw && tvc->const_colors) {
tvc->const_colors(tvc, bg_sel);