Commit 762a4cb3 authored by Adam D. Moss's avatar Adam D. Moss
Browse files

very minor fix

parent 2f392e82
Wed Sep 29 22:48:01 BST 1999 Adam D. Moss <adam@gimp.org>
* app/gimpbrushpipe.c: very minor fix.
Wed Sep 29 21:56:52 BST 1999 Andy Thomas <alt@gimp.org>
* app/colourmap_dialog.i.c
......
......@@ -130,9 +130,6 @@ gimp_brush_pixmap_select_brush (PaintCore *paint_core)
{
switch (pipe->select[i])
{
case PIPE_SELECT_CONSTANT:
ix = pipe->index[i];
break;
case PIPE_SELECT_INCREMENTAL:
ix = (pipe->index[i] + 1) % pipe->rank[i];
break;
......@@ -161,6 +158,10 @@ gimp_brush_pixmap_select_brush (PaintCore *paint_core)
case PIPE_SELECT_TILT_Y:
ix = RINT (paint_core->curytilt / 2.0 * pipe->rank[i]) + pipe->rank[i]/2;
break;
case PIPE_SELECT_CONSTANT:
default:
ix = pipe->index[i];
break;
}
pipe->index[i] = BOUNDS (ix, 0, pipe->rank[i]-1);
brushix += pipe->stride[i] * pipe->index[i];
......
......@@ -130,9 +130,6 @@ gimp_brush_pixmap_select_brush (PaintCore *paint_core)
{
switch (pipe->select[i])
{
case PIPE_SELECT_CONSTANT:
ix = pipe->index[i];
break;
case PIPE_SELECT_INCREMENTAL:
ix = (pipe->index[i] + 1) % pipe->rank[i];
break;
......@@ -161,6 +158,10 @@ gimp_brush_pixmap_select_brush (PaintCore *paint_core)
case PIPE_SELECT_TILT_Y:
ix = RINT (paint_core->curytilt / 2.0 * pipe->rank[i]) + pipe->rank[i]/2;
break;
case PIPE_SELECT_CONSTANT:
default:
ix = pipe->index[i];
break;
}
pipe->index[i] = BOUNDS (ix, 0, pipe->rank[i]-1);
brushix += pipe->stride[i] * pipe->index[i];
......
......@@ -130,9 +130,6 @@ gimp_brush_pixmap_select_brush (PaintCore *paint_core)
{
switch (pipe->select[i])
{
case PIPE_SELECT_CONSTANT:
ix = pipe->index[i];
break;
case PIPE_SELECT_INCREMENTAL:
ix = (pipe->index[i] + 1) % pipe->rank[i];
break;
......@@ -161,6 +158,10 @@ gimp_brush_pixmap_select_brush (PaintCore *paint_core)
case PIPE_SELECT_TILT_Y:
ix = RINT (paint_core->curytilt / 2.0 * pipe->rank[i]) + pipe->rank[i]/2;
break;
case PIPE_SELECT_CONSTANT:
default:
ix = pipe->index[i];
break;
}
pipe->index[i] = BOUNDS (ix, 0, pipe->rank[i]-1);
brushix += pipe->stride[i] * pipe->index[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment