diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gimmage/distinfo | 3 | ||||
-rw-r--r-- | graphics/gimmage/patches/patch-src_ImageEventBox.cpp | 40 |
2 files changed, 42 insertions, 1 deletions
diff --git a/graphics/gimmage/distinfo b/graphics/gimmage/distinfo index 3b07c2f0320..da58e4d29b1 100644 --- a/graphics/gimmage/distinfo +++ b/graphics/gimmage/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.4 2015/11/03 21:33:59 agc Exp $ +$NetBSD: distinfo,v 1.5 2017/02/09 00:22:35 joerg Exp $ SHA1 (gimmage-0.2.3.tar.gz) = 732dee063553b787b65a0a5bd3d207bdb5d01df1 RMD160 (gimmage-0.2.3.tar.gz) = d3fd105390e21548cf9c83b199681b53616f3640 SHA512 (gimmage-0.2.3.tar.gz) = ff8fdf860d4712502e6e8656a14e5327a5b89af49f312e54de5f0e80cd6e406214a61228c79ad643c2640268d5eacfd760c83acbebdc7fa9b6e7c094728be167 Size (gimmage-0.2.3.tar.gz) = 193777 bytes SHA1 (patch-aa) = ddb740f723e266d8fc6b37743ef43e6c1095c7ab +SHA1 (patch-src_ImageEventBox.cpp) = db11a729e755b5c580bfa618e34acfe422a440c6 diff --git a/graphics/gimmage/patches/patch-src_ImageEventBox.cpp b/graphics/gimmage/patches/patch-src_ImageEventBox.cpp new file mode 100644 index 00000000000..d044926c25f --- /dev/null +++ b/graphics/gimmage/patches/patch-src_ImageEventBox.cpp @@ -0,0 +1,40 @@ +$NetBSD: patch-src_ImageEventBox.cpp,v 1.1 2017/02/09 00:22:35 joerg Exp $ + +--- src/ImageEventBox.cpp.orig 2017-01-08 18:51:01.889096829 +0000 ++++ src/ImageEventBox.cpp +@@ -149,7 +149,7 @@ void ImageEventBox::LoadImage( const Gli + void ImageEventBox::ScaleImage( double scalefactor, + Gdk::InterpType interp_type) + { +- if(ImagePixbuf_Original != 0 && loaded == true) ++ if(ImagePixbuf_Original && loaded == true) + { + int new_width = (int)(scalefactor * (double)ImagePixbuf_Original->get_width()); + int new_height = (int)(scalefactor * (double)ImagePixbuf_Original->get_height()); +@@ -176,7 +176,7 @@ void ImageEventBox::ScaleImage( int widt + double * scalefactor, + Gdk::InterpType interp_type) + { +- if(ImagePixbuf_Original != 0 && loaded == true) ++ if(ImagePixbuf_Original && loaded == true) + { + double ratioh = (double)height/(double)ImagePixbuf_Original->get_height(); + double ratiow = (double)width/(double)ImagePixbuf_Original->get_width(); +@@ -206,7 +206,7 @@ void ImageEventBox::ScaleImage2( int wid + double * scalefactor, + Gdk::InterpType interp_type) + { +- if(ImagePixbuf_Original != 0 && loaded == true) ++ if(ImagePixbuf_Original && loaded == true) + { + if( width <= ImagePixbuf_Original->get_width() || height <= ImagePixbuf_Original->get_height() ) + { +@@ -242,7 +242,7 @@ void ImageEventBox::ScaleImage2( int wid + // the rotation of the image + void ImageEventBox::RotateImage(Gdk::PixbufRotation rotateby) + { +- if(ImagePixbuf_Original != 0 && loaded == true) ++ if(ImagePixbuf_Original && loaded == true) + { + try + { |