From adf8cee449b42debbdc6578538a78127ada74cec Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 13 Jul 2013 01:48:30 +0200 Subject: GRAPHICS: Allow arbitrary input sizes for thumbnail scaling. Instead of a fixed 1/2 or 1/4 scaling we do a two step scaling now: 1) Scale image to width < 160*2 && height < [100,120]*2 with 1/4 or 1/2 nearest-neighbor. 2) Use a bilinear scaler to scale aspect preserving to 160x[100,120] This fixes bug #3614568 "GRAPHICS: Odd thumbnail sizes crash". --- graphics/scaler.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'graphics/scaler.h') diff --git a/graphics/scaler.h b/graphics/scaler.h index 54d022d202..1e5b796631 100644 --- a/graphics/scaler.h +++ b/graphics/scaler.h @@ -89,10 +89,4 @@ extern bool createThumbnailFromScreen(Graphics::Surface *surf); */ extern bool createThumbnail(Graphics::Surface *surf, const uint8 *pixels, int w, int h, const uint8 *palette); -/** - * Downscale screenshot to thumbnale size. - * - */ -extern bool createThumbnail(Graphics::Surface &out, Graphics::Surface &in); - #endif -- cgit v1.2.3