Commit 5f0da4fe authored by Claes Sjofors's avatar Claes Sjofors

Ge image tone bugfix

parent becadf5b
......@@ -2947,7 +2947,7 @@ void GlowDrawGtk::image_pixel_iter( glow_tImImage orig_image, glow_tImImage *ima
if ( orig_image) {
if ( image)
if ( image && *image != orig_image)
gdk_pixbuf_unref( (GdkPixbuf *)*image);
*image = (glow_tImImage *) gdk_pixbuf_copy( (GdkPixbuf *)orig_image);
}
......
......@@ -936,12 +936,12 @@ void GrowImage::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, voi
((GrowNode *)node)->color_intensity ||
((GrowNode *)node)->color_shift ||
((GrowNode *)node)->color_inverse)) ||
( !colornode && (glow_eDrawTone_No == color_tone ||
( !colornode && (glow_eDrawTone_No != color_tone ||
color_lightness ||
color_intensity ||
color_shift ||
color_inverse))))) {
set_image_color( om, colornode);
set_image_color( original_image, colornode);
if ( ctx->gdraw->image_get_width( image) != current_width ||
ctx->gdraw->image_get_height( image) != current_height) {
ctx->gdraw->image_scale( ur_x - ll_x, ur_y - ll_y, 0,
......@@ -965,7 +965,7 @@ void GrowImage::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, voi
}
if ( sts) {
ctx->gdraw->image_render( ur_x - ll_x, ur_y - ll_y, om,
ctx->gdraw->image_render( ur_x - ll_x, ur_y - ll_y, &original_image,
&image, &pixmap, &clip_mask);
om = 0;
current_width = ctx->gdraw->image_get_width( image);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment