This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
*/
// vid.h -- video driver defs
-typedef struct vrect_s
-{
- int x,y,width,height;
- struct vrect_s *pnext;
-} vrect_t;
-
typedef struct
{
- int width;
- int height;
- int recalc_refdef; // if true, recalc vid-based stuff
+ // these are set with VID_GetWindowSize and can change from frame to frame
+ int realx;
+ int realy;
+ int realwidth;
+ int realheight;
+// int recalc_refdef; // if true, recalc vid-based stuff
+
int conwidth;
int conheight;
} viddef_t;
// sets hardware gamma correction, returns false if the device does not support gamma control
int VID_SetGamma (float prescale, float gamma, float scale, float base);
+
+void VID_GetWindowSize (int *x, int *y, int *width, int *height);
+
+void VID_Finish (void);