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>2012-10-24 09:06:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-24 09:06:40 +0400
commit81eafc49e624b089190ff21bdd9d71c4b4a5c7da (patch)
tree89ea4967e3d87d7a159833c876171a6db4ba20dc /source/blender/editors/space_info
parentdb250a48f615ed36b368412deedaa77f59366d61 (diff)
use min_ii/max_ii over MIN2 MAX2
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/textview.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c
index cfab2542756..f454b1dbe7d 100644
--- a/source/blender/editors/space_info/textview.c
+++ b/source/blender/editors/space_info/textview.c
@@ -36,8 +36,6 @@
#include "BLI_math.h"
#include "BLI_utildefines.h"
-
-
#include "BIF_gl.h"
#include "BIF_glutil.h"
@@ -66,8 +64,8 @@ typedef struct ConsoleDrawContext {
static void console_draw_sel(int sel[2], int xy[2], int str_len_draw, int cwidth, int lheight)
{
if (sel[0] <= str_len_draw && sel[1] >= 0) {
- int sta = MAX2(sel[0], 0);
- int end = MIN2(sel[1], str_len_draw);
+ int sta = max_ii(sel[0], 0);
+ int end = min_ii(sel[1], str_len_draw);
glEnable(GL_POLYGON_STIPPLE);
glPolygonStipple(stipple_halftone);