very minor fix

This commit is contained in:
Adam D. Moss 1999-09-29 21:49:27 +00:00
parent 2f392e82b4
commit 762a4cb35b
4 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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];

View File

@ -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];

View File

@ -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];