From 5fd9ec1f70c2d0e1c07fff195c9b68f356675d27 Mon Sep 17 00:00:00 2001 From: avolkov Date: Fri, 31 Jan 2003 09:27:49 +0000 Subject: [PATCH] added improved biadapt scaler for pure mode (--scale=biadv) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@623 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/gfx_common.h | 1 + sc2/src/starcon2.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/graphics/gfx_common.h b/sc2/src/sc2code/libs/graphics/gfx_common.h index 9a08bf451..96b6f70ca 100644 --- a/sc2/src/sc2code/libs/graphics/gfx_common.h +++ b/sc2/src/sc2code/libs/graphics/gfx_common.h @@ -41,6 +41,7 @@ enum #define TFB_GFXFLAGS_SCANLINES (1<<2) #define TFB_GFXFLAGS_SCALE_BILINEAR (1<<3) #define TFB_GFXFLAGS_SCALE_BIADAPT (1<<4) +#define TFB_GFXFLAGS_SCALE_BIADAPTADV (1<<5) #define TFB_GFX_NUMSCREENS 3 diff --git a/sc2/src/starcon2.c b/sc2/src/starcon2.c index d31546d85..9d654f767 100644 --- a/sc2/src/starcon2.c +++ b/sc2/src/starcon2.c @@ -154,6 +154,10 @@ main (int argc, char *argv[]) { gfxflags |= TFB_GFXFLAGS_SCALE_BIADAPT; } + else if (!strcmp (optarg, "biadv")) + { + gfxflags |= TFB_GFXFLAGS_SCALE_BIADAPTADV; + } break; case 's': gfxflags |= TFB_GFXFLAGS_SCANLINES; @@ -247,7 +251,7 @@ main (int argc, char *argv[]) printf(" -d, --bpp=BITSPERPIXEL (default 16)\n"); printf(" -f, --fullscreen (default off)\n"); printf(" -o, --opengl (default off)\n"); - printf(" -c, --scale=mode (bilinear or biadapt, default is none)\n"); + printf(" -c, --scale=mode (bilinear, biadapt or biadv, default is none)\n"); printf(" -s, --scanlines (default off)\n"); printf(" -p, --fps (default off)\n"); printf(" -n, --contentdir=CONTENTDIR\n");