mirror of https://github.com/GNOME/gimp.git
update the progress less frequently.
2005-08-17 Sven Neumann <sven@gimp.org> * plug-ins/common/grid.c: update the progress less frequently.
This commit is contained in:
parent
047a01e24f
commit
9795fdebbc
|
@ -1,3 +1,7 @@
|
|||
2005-08-17 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/grid.c: update the progress less frequently.
|
||||
|
||||
2005-08-17 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimppaletteview.c (gimp_palette_view_focus): when
|
||||
|
|
|
@ -299,13 +299,11 @@ pix_composite (guchar *p1,
|
|||
{
|
||||
gint b;
|
||||
|
||||
if (alpha)
|
||||
{
|
||||
bytes--;
|
||||
}
|
||||
|
||||
if (blend)
|
||||
{
|
||||
if (alpha)
|
||||
bytes--;
|
||||
|
||||
for (b = 0; b < bytes; b++)
|
||||
{
|
||||
*p1 = *p1 * (1.0 - p2[3]/255.0) + p2[b] * p2[3]/255.0;
|
||||
|
@ -320,7 +318,8 @@ pix_composite (guchar *p1,
|
|||
|
||||
if (alpha && *p1 < 255)
|
||||
{
|
||||
b = *p1 + 255.0 * ((double)p2[3] / (255.0 - *p1));
|
||||
b = *p1 + 255.0 * ((gdouble) p2[3] / (255.0 - *p1));
|
||||
|
||||
*p1 = b > 255 ? 255 : b;
|
||||
}
|
||||
}
|
||||
|
@ -487,8 +486,10 @@ grid (gint32 image_ID,
|
|||
}
|
||||
else
|
||||
{
|
||||
gimp_pixel_rgn_set_row (&destPR, dest, sx1, y, (sx2 - sx1) );
|
||||
gimp_progress_update ((double) y / (double) (sy2 - sy1));
|
||||
gimp_pixel_rgn_set_row (&destPR, dest, sx1, y, (sx2 - sx1));
|
||||
|
||||
if (y % 16 == 0)
|
||||
gimp_progress_update ((gdouble) y / (gdouble) (sy2 - sy1));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue