aboutsummaryrefslogtreecommitdiff
path: root/common/scaler.h
diff options
context:
space:
mode:
authorMax Horn2003-06-22 11:55:40 +0000
committerMax Horn2003-06-22 11:55:40 +0000
commit11ff7fe9a347efe37e2bd8fefca7e8c130f81af0 (patch)
tree037c8edce6a559e5816b7733727305ff66cc49cf /common/scaler.h
parentfa184730af2f2be094aa9f37cd3abf58d10f79ea (diff)
downloadscummvm-rg350-11ff7fe9a347efe37e2bd8fefca7e8c130f81af0.tar.gz
scummvm-rg350-11ff7fe9a347efe37e2bd8fefca7e8c130f81af0.tar.bz2
scummvm-rg350-11ff7fe9a347efe37e2bd8fefca7e8c130f81af0.zip
Patch #757827: Aspect-ratio correction
svn-id: r8605
Diffstat (limited to 'common/scaler.h')
-rw-r--r--common/scaler.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/scaler.h b/common/scaler.h
index e3246587c9..b8000ddccd 100644
--- a/common/scaler.h
+++ b/common/scaler.h
@@ -41,6 +41,15 @@ DECLARE_SCALER(Normal3x);
DECLARE_SCALER(TV2x);
DECLARE_SCALER(DotMatrix);
+FORCEINLINE int real2Aspect(int y) {
+ return y + (y + 1) / 5;
+}
+
+FORCEINLINE int aspect2Real(int y) {
+ return (y * 5 + 3) / 6;
+}
+
+extern int stretch200To240(uint8 *buf, uint32 pitch, int width, int height, int srcX, int srcY, int origSrcY);
enum {
GFX_NORMAL = 0,
@@ -54,7 +63,6 @@ enum {
GFX_TV2X = 8,
GFX_DOTMATRIX = 9,
- GFX_ASPECTRATIO = 11, // OpenGL backend
GFX_BILINEAR = 12, // OpenGL backend
GFX_FLIPPING = 100, // Palmos