gimp r25039 - trunk/app/display
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25039 - trunk/app/display
- Date: Wed, 5 Mar 2008 21:14:51 +0000 (GMT)
Author: neo
Date: Wed Mar 5 21:14:50 2008
New Revision: 25039
URL: http://svn.gnome.org/viewvc/gimp?rev=25039&view=rev
Log:
minor cleanups
Modified:
trunk/app/display/gimpdisplayshell-preview.c
Modified: trunk/app/display/gimpdisplayshell-preview.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-preview.c (original)
+++ trunk/app/display/gimpdisplayshell-preview.c Wed Mar 5 21:14:50 2008
@@ -183,7 +183,8 @@
/* only draw convex polygons */
- if (! ((z1 * z2 > 0) && (z3 * z4 > 0))) return;
+ if (! ((z1 * z2 > 0) && (z3 * z4 > 0)))
+ return;
if (GIMP_IS_LAYER (tool->drawable))
opacity = gimp_layer_get_opacity (GIMP_LAYER (tool->drawable)) * 255.999;
@@ -651,7 +652,8 @@
}
dx = x2 - x1;
- if (! dx) return;
+ if (! dx)
+ return;
pptr = (gdk_pixbuf_get_pixels (area)
+ (y - area_offy) * gdk_pixbuf_get_rowstride (area)
@@ -917,7 +919,8 @@
gfloat mu, mv;
gfloat du, dv;
gint dx;
- guchar pixel[4], maskval;
+ guchar pixel[4];
+ guchar maskval;
const guchar *cmap;
gint offset;
@@ -1035,6 +1038,8 @@
if (opacity == 255)
while (dx--)
{
+ register gulong tmp;
+
read_pixel_data_1 (tiles, (gint) u, (gint) v, pixel);
read_pixel_data_1 (masktiles, (gint) mu, (gint) mv, &maskval);
@@ -1043,7 +1048,7 @@
pptr[0] = cmap[offset + 0];
pptr[1] = cmap[offset + 1];
pptr[2] = cmap[offset + 2];
- pptr[3] = ((gint) maskval * pixel[1]) >> 8;
+ pptr[3] = INT_MULT (maskval, pixel[1], tmp);
pptr += 4;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]