aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler.h
diff options
context:
space:
mode:
authorJohannes Schickel2013-07-13 01:48:30 +0200
committerJohannes Schickel2013-07-13 01:57:23 +0200
commitadf8cee449b42debbdc6578538a78127ada74cec (patch)
tree54f1560d768dd6f272b1ac43b7e3c601c4443b56 /graphics/scaler.h
parent57cc59356c14d516c128797e5a17b322ad90820c (diff)
downloadscummvm-rg350-adf8cee449b42debbdc6578538a78127ada74cec.tar.gz
scummvm-rg350-adf8cee449b42debbdc6578538a78127ada74cec.tar.bz2
scummvm-rg350-adf8cee449b42debbdc6578538a78127ada74cec.zip
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".
Diffstat (limited to 'graphics/scaler.h')
-rw-r--r--graphics/scaler.h6
1 files changed, 0 insertions, 6 deletions
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