Kaydet (Commit) 324cae2f authored tarafından Michael Meeks's avatar Michael Meeks

gallery: cleanup scaling code.

Change-Id: I783b0fe54c6273ce3d78996a02da02dc51944606
üst b54709dd
......@@ -127,7 +127,6 @@ gb_Package_OUTDIR_$(1) := $(2)
endef
define gb_Package_add_file
$(info gb_Package_add_file,$(1), $(2), $(3), $(4))
$(call gb_Package__check,$(1))
$(if $(strip $(3)),,$(call gb_Output_error,gb_Package_add_file requires 3 arguments))
$(call gb_Package_get_target,$(1)) : $$(gb_Package_OUTDIR_$(1))/$(2)
......
......@@ -99,7 +99,6 @@ sal_Bool SgaObject::CreateThumb( const Graphic& rGraphic )
const float fFactor = (float) aBmpSize.Width() / aBmpSize.Height();
const Size aNewSize( std::max( (long) (fFactor < 1. ? S_THUMB * fFactor : S_THUMB), 8L ),
std::max( (long) (fFactor < 1. ? S_THUMB : S_THUMB / fFactor), 8L ) );
if(aThumbBmp.Scale(
(double) aNewSize.Width() / aBmpSize.Width(),
(double) aNewSize.Height() / aBmpSize.Height(),
......
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