diff options
author | Simon Howard | 2008-09-06 20:06:14 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-06 20:06:14 +0000 |
commit | 439a4b158b47c635100b0006470a7ed1e44e29f3 (patch) | |
tree | 292470a75ce641d09e6205063ffc645d68359917 /src/i_video.h | |
parent | 87be507ed7d66194903cfd80db76a30275469260 (diff) | |
download | chocolate-doom-439a4b158b47c635100b0006470a7ed1e44e29f3.tar.gz chocolate-doom-439a4b158b47c635100b0006470a7ed1e44e29f3.tar.bz2 chocolate-doom-439a4b158b47c635100b0006470a7ed1e44e29f3.zip |
Remove includes of doomdef.h where possible, move generic parts into top
level.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1204
Diffstat (limited to 'src/i_video.h')
-rw-r--r-- | src/i_video.h | 46 |
1 files changed, 29 insertions, 17 deletions
diff --git a/src/i_video.h b/src/i_video.h index bd5de24a..3e871d5c 100644 --- a/src/i_video.h +++ b/src/i_video.h @@ -28,33 +28,45 @@ #ifndef __I_VIDEO__ #define __I_VIDEO__ - #include "doomtype.h" +// Screen width and height. + +#define SCREENWIDTH 320 +#define SCREENHEIGHT 200 + +// Screen width used for "squash" scale functions + +#define SCREENWIDTH_4_3 256 + +// Screen height used for "stretch" scale functions. + +#define SCREENHEIGHT_4_3 240 + typedef struct { - // Screen width and height + // Screen width and height - int width; - int height; + int width; + int height; - // Initialisation function to call when using this mode. - // Called with a pointer to the Doom palette. - // - // If NULL, no init function is called. + // Initialisation function to call when using this mode. + // Called with a pointer to the Doom palette. + // + // If NULL, no init function is called. - void (*InitMode)(byte *palette); - - // Function to call to draw the screen from the source buffer. - // Return true if draw was successful. + void (*InitMode)(byte *palette); + + // Function to call to draw the screen from the source buffer. + // Return true if draw was successful. - boolean (*DrawScreen)(int x1, int y1, int x2, int y2); + boolean (*DrawScreen)(int x1, int y1, int x2, int y2); - // If true, this is a "poor quality" mode. The autoadjust - // code should always attempt to use a different mode to this - // mode in fullscreen. + // If true, this is a "poor quality" mode. The autoadjust + // code should always attempt to use a different mode to this + // mode in fullscreen. - boolean poor_quality; + boolean poor_quality; } screen_mode_t; // Called by D_DoomMain, |