summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2007-08-08 18:04:35 +0000
committerSimon Howard2007-08-08 18:04:35 +0000
commit7a157912616e6d3fdde89f0ae154c62ddb6d839b (patch)
treec5109fa10c0bf8f5de01f408418cab9fa5a0c286
parentff95b3ad95fd25d49e587e9d402cae67bab2e95d (diff)
downloadchocolate-doom-7a157912616e6d3fdde89f0ae154c62ddb6d839b.tar.gz
chocolate-doom-7a157912616e6d3fdde89f0ae154c62ddb6d839b.tar.bz2
chocolate-doom-7a157912616e6d3fdde89f0ae154c62ddb6d839b.zip
Move SCREENHEIGHT_4_3 to doomdef.h; remove some unused constants.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 950
-rw-r--r--src/doomdef.h27
-rw-r--r--src/i_video.c4
-rw-r--r--src/st_stuff.h2
3 files changed, 6 insertions, 27 deletions
diff --git a/src/doomdef.h b/src/doomdef.h
index 46fad73c..37c6810c 100644
--- a/src/doomdef.h
+++ b/src/doomdef.h
@@ -81,32 +81,15 @@ typedef enum
#define RANGECHECK
-// This one switches between MIT SHM (no proper mouse)
-// and XFree86 DGA (mickey sampling). The original
-// linuxdoom used SHM, which is default.
-//#define X11_DGA 1
+// Screen width and height.
-//
-// For resize of screen, at start of game.
-// It will not work dynamically, see visplanes.
-//
-#define BASE_WIDTH 320
-
-// It is educational but futile to change this
-// scaling e.g. to 2. Drawing of status bar,
-// menues etc. is tied to the scale implied
-// by the graphics.
-#define SCREEN_MUL 1
-#define INV_ASPECT_RATIO 0.625 // 0.75, ideally
-
-// Defines suck. C sucks.
-// C++ might sucks for OOP, but it sure is a better C.
-// So there.
#define SCREENWIDTH 320
-//SCREEN_MUL*BASE_WIDTH //320
#define SCREENHEIGHT 200
-//(int)(SCREEN_MUL*BASE_WIDTH*INV_ASPECT_RATIO) //200
+
+// Alternate screenheight for letterbox/aspect ratio corrected mode
+
+#define SCREENHEIGHT_4_3 240
diff --git a/src/i_video.c b/src/i_video.c
index 42361f7b..fe5aca8d 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -49,10 +49,6 @@
#include "w_wad.h"
#include "z_zone.h"
-// Alternate screenheight for letterbox mode
-
-#define SCREENHEIGHT_4_3 240
-
enum
{
FULLSCREEN_OFF,
diff --git a/src/st_stuff.h b/src/st_stuff.h
index 51398e62..c6b56fd6 100644
--- a/src/st_stuff.h
+++ b/src/st_stuff.h
@@ -35,7 +35,7 @@
// Size of statusbar.
// Now sensitive for scaling.
-#define ST_HEIGHT 32*SCREEN_MUL
+#define ST_HEIGHT 32
#define ST_WIDTH SCREENWIDTH
#define ST_Y (SCREENHEIGHT - ST_HEIGHT)