// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // 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. See the // GNU General Public License for more details. // // $Log:$ // // DESCRIPTION: // DOOM graphics stuff for X11, UNIX. // //----------------------------------------------------------------------------- #include #include #include "doomstat.h" #include "i_system.h" #include "ib_video.h" #include "v_video.h" #include "m_argv.h" #include "d_main.h" #include "doomdef.h" #include "i_video.h" int aspect_ratio_correction; static unsigned char *colors; static size_t bytes_per_pixel; static unsigned char *colored_screen; static unsigned char *upscale_x_deltas; static unsigned char *upscale_y_deltas; static size_t output_width; static size_t output_height; // // I_StartFrame // void I_StartFrame (void) { // er? } // // I_StartTic // void I_StartTic (void) { IB_StartTic(); } // // I_UpdateNoBlit // void I_UpdateNoBlit (void) { // what is this? } // // I_FinishUpdate // void I_FinishUpdate (void) { static int lasttic; int tics; int i; // draws little dots on the bottom of the screen if (devparm) { i = I_GetTime(); tics = i - lasttic; lasttic = i; if (tics > 20) tics = 20; for (i=0 ; i