mirror of https://github.com/GNOME/gimp.git
very minor fix
This commit is contained in:
parent
2f392e82b4
commit
762a4cb35b
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue