From 0cc2ad38090b1b286ded01321afc0e199b37372c Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 18 Dec 2006 18:15:47 +0000 Subject: x3, x4 aspect ratio corrected scale functions. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 786 --- TODO | 1 - src/i_scale.c | 282 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/i_scale.h | 2 + src/i_video.c | 8 ++ 4 files changed, 292 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 83b9ecdc..41971825 100644 --- a/TODO +++ b/TODO @@ -5,7 +5,6 @@ To do: - Debian/Ubuntu .deb packages, Fedora .rpm packages. - Windows NSIS installer. - MacOS X .dmg packages (should be universal binaries!) -* Aspect ratio correction - stretch 320x200 to 320x240, 640x480, etc. * Smarter setup program - detect IWADs automatically and make them selectable from a list. * Free version of the Chocolate Doom logo (from scratch, not using the diff --git a/src/i_scale.c b/src/i_scale.c index 29bc8731..deda0551 100644 --- a/src/i_scale.c +++ b/src/i_scale.c @@ -402,3 +402,285 @@ void I_Stretch2x(int x1, int y1, int x2, int y2) } } +static void WriteLine3x(byte *dest, byte *src) +{ + int x; + + for (x=0; x 720) + + for (y=0; y 960) + + for (y=0; y