Ticket #8367: edge3x.dif

File edge3x.dif, 2.3 KB (added by SF/ewelsh42, 20 years ago)

diff for new edge3x scaler (use patch -q0)

Line 
1--- ./base/gameDetector.cpp.org 2004-10-21 17:37:32.000000000 -0500
2+++ ./base/gameDetector.cpp 2004-11-06 01:48:56.000000000 -0600
3@@ -56,7 +56,7 @@
4 " -F, --no-fullscreen Force windowed mode\n"
5 " -g, --gfx-mode=MODE Select graphics scaler (normal,2x,3x,2xsai,\n"
6 " super2xsai,supereagle,advmame2x,advmame3x,hq2x,\n"
7- " hq3x,tv2x,dotmatrix)\n"
8+ " hq3x,tv2x,dotmatrix,edge3x)\n"
9 " -e, --music-driver=MODE Select music driver (see README for details)\n"
10 " -q, --language=LANG Select language (en,de,fr,it,pt,es,jp,zh,kr,se,gb,\n"
11 " hb,ru,cz)\n"
12--- ./backends/sdl/graphics.cpp.org 2004-10-15 17:28:12.000000000 -0500
13+++ ./backends/sdl/graphics.cpp 2004-11-06 01:51:12.000000000 -0600
14@@ -38,6 +38,7 @@
15 {"hq3x", "HQ3x", GFX_HQ3X},
16 {"tv2x", "TV2x", GFX_TV2X},
17 {"dotmatrix", "DotMatrix", GFX_DOTMATRIX},
18+ {"edge3x", "Edge3x", GFX_EDGE3X},
19 {0, 0, 0}
20 };
21
22@@ -105,6 +106,10 @@
23 newScaleFactor = 2;
24 newScalerProc = DotMatrix;
25 break;
26+ case GFX_EDGE3X:
27+ newScaleFactor = 3;
28+ newScalerProc = Edge3x;
29+ break;
30
31 default:
32 warning("unknown gfx mode %d", mode);
33--- ./backends/sdl/sdl-common.h.org 2004-10-15 17:28:12.000000000 -0500
34+++ ./backends/sdl/sdl-common.h 2004-11-06 01:50:14.000000000 -0600
35@@ -44,7 +44,8 @@
36 { GFX_NORMAL, GFX_SUPER2XSAI, -1, -1 },
37 { GFX_NORMAL, GFX_SUPEREAGLE, -1, -1 },
38 { GFX_NORMAL, GFX_TV2X, -1, -1 },
39- { GFX_NORMAL, GFX_DOTMATRIX, -1, -1 }
40+ { GFX_NORMAL, GFX_DOTMATRIX, -1, -1 },
41+ { GFX_NORMAL, -1, GFX_EDGE3X, -1 }
42 };
43
44
45--- ./common/module.mk.org 2004-11-06 01:29:38.000000000 -0600
46+++ ./common/module.mk 2004-11-06 01:48:56.000000000 -0600
47@@ -20,7 +20,8 @@
48 common/scaler/hq3x.o \
49 common/scaler/scale2x.o \
50 common/scaler/scale3x.o \
51- common/scaler/scalebit.o
52+ common/scaler/scalebit.o \
53+ common/scaler/edge3x.o
54
55 ifdef HAVE_NASM
56 MODULE_OBJS += \
57--- ./common/scaler.h.org 2004-11-06 01:33:28.000000000 -0600
58+++ ./common/scaler.h 2004-11-06 01:48:56.000000000 -0600
59@@ -45,6 +45,7 @@
60 DECLARE_SCALER(DotMatrix);
61 DECLARE_SCALER(HQ2x);
62 DECLARE_SCALER(HQ3x);
63+DECLARE_SCALER(Edge3x);
64
65 FORCEINLINE int real2Aspect(int y) {
66 return y + (y + 1) / 5;
67@@ -70,7 +71,8 @@
68 GFX_HQ2X = 8,
69 GFX_HQ3X = 9,
70 GFX_TV2X = 10,
71- GFX_DOTMATRIX = 11
72+ GFX_DOTMATRIX = 11,
73+ GFX_EDGE3X = 12
74 };
75
76