changed scaling algorithm for radio logo image from BILINEAR to HYPER
(whatever that means) -- it's still a bit fuzzy
This commit is contained in:
parent
26667aad3d
commit
eac694b83a
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: fgerlits $
|
Author : $Author: fgerlits $
|
||||||
Version : $Revision: 1.42 $
|
Version : $Revision: 1.43 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/MasterPanelWindow.cxx,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/MasterPanelWindow.cxx,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -601,12 +601,12 @@ resizeImage(Gtk::Image* image, int width, int height) throw ()
|
||||||
// image is wide: squash horizontally
|
// image is wide: squash horizontally
|
||||||
image->set(pixbuf->scale_simple(width,
|
image->set(pixbuf->scale_simple(width,
|
||||||
(imageHeight * width)/imageWidth,
|
(imageHeight * width)/imageWidth,
|
||||||
Gdk::INTERP_BILINEAR ));
|
Gdk::INTERP_HYPER ));
|
||||||
} else {
|
} else {
|
||||||
// image is tall: squash vertically
|
// image is tall: squash vertically
|
||||||
image->set(pixbuf->scale_simple((imageWidth * height)/imageHeight,
|
image->set(pixbuf->scale_simple((imageWidth * height)/imageHeight,
|
||||||
height,
|
height,
|
||||||
Gdk::INTERP_BILINEAR ));
|
Gdk::INTERP_HYPER ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue