mirror of https://github.com/GNOME/gimp.git
Finally fixed an old and annoying bug.
* plug-ins/gimpressionist/repaint.c: Finally fixed an old and annoying bug.
This commit is contained in:
parent
c8e68189d9
commit
1bf05390bc
|
@ -1,3 +1,8 @@
|
|||
2000-06-09 Vidar Madsen <vidar@prosalg.no>
|
||||
|
||||
* plug-ins/gimpressionist/repaint.c: Finally fixed an old
|
||||
and annoying bug.
|
||||
|
||||
2000-06-09 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/gdisplay.[ch]
|
||||
|
|
|
@ -130,11 +130,12 @@ int bestbrush(struct ppm *p, struct ppm *a, int tx, int ty,
|
|||
dev /= thissum;
|
||||
|
||||
if((best == -1) || (dev < bestdev)) {
|
||||
if(brlist)
|
||||
g_list_free(brlist);
|
||||
brlist = NULL;
|
||||
}
|
||||
|
||||
if(dev < bestdev || best < 0) {
|
||||
if(dev <= bestdev || best < 0) {
|
||||
best = i;
|
||||
bestdev = dev;
|
||||
brlist = g_list_append(brlist, (void *)i);
|
||||
|
@ -663,7 +664,7 @@ void repaint(struct ppm *p, struct ppm *a)
|
|||
case 4: /* Flowing */
|
||||
case 5: /* Hue */
|
||||
case 7: /* Manual */
|
||||
on = runningvals.orientnum * dirmap.col[ty*dirmap.width*3+tx*3] / 255;
|
||||
on = runningvals.orientnum * dirmap.col[ty*dirmap.width*3+tx*3] / 256;
|
||||
break;
|
||||
case 6: /* Adaptive */
|
||||
break; /* Handled below */
|
||||
|
@ -683,7 +684,7 @@ void repaint(struct ppm *p, struct ppm *a)
|
|||
case 4: /* Flowing */
|
||||
case 5: /* Hue */
|
||||
case 7: /* Manual */
|
||||
sn = runningvals.sizenum * sizmap.col[ty*sizmap.width*3+tx*3] / 255;
|
||||
sn = runningvals.sizenum * sizmap.col[ty*sizmap.width*3+tx*3] / 256;
|
||||
break;
|
||||
case 6: /* Adaptive */
|
||||
break; /* Handled below */
|
||||
|
|
Loading…
Reference in New Issue