summaryrefslogtreecommitdiff
path: root/src/v_video.c
AgeCommit message (Collapse)Author
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-04-01Replace all snprintf() calls with M_snprintf().Simon Howard
The Windows API has an _snprintf function that is not the same as Unix's snprintf(): if the string is truncated then no trailing NUL character is appended. This makes the function unsafe. Define a replacement/wrapper called M_snprintf that works the same but always appends a trailing NUL, for safety on Windows and other OSes that behave like this. Do the same thing for vsnprintf(), and update HACKING to list snprintf/vsnprintf as forbidden functions. This fixes #375; thanks to Quasar for pointing out the different behavior of these functions.
2014-03-30Eliminate some uses of sprintf() from common code.Simon Howard
As part of this, add DIR_SEPARATOR_S as a string version of the DIR_SEPARATOR macro. Change M_TempFile() to return a string allocated on the C heap rather than the zone heap. This is a first step towards fixing #371.
2014-03-24Fix various Clang compiler warnings.Simon Howard
2014-03-17Remove 0 summand.Fabian Greffrath
2014-03-17Add some strictly unnecessary curly braces.Fabian Greffrath
2014-03-17Allow for PNG screenshots.Fabian Greffrath
2013-10-06Fix RANGECHECK on V_DrawPatch() functions, so the game exits with anSimon Howard
error at appropriate times. Subversion-branch: /branches/v2-branch Subversion-revision: 2692
2011-09-24Add -testcontrols to Heretic.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2396
2011-09-24Rework mouse speed box drawing code and move to common code, so that itSimon Howard
can be added to other games. Subversion-branch: /branches/v2-branch Subversion-revision: 2395
2011-02-14Fix to HUlib_drawYellowText (more Hex-Rays code-skipping shenanigans),James Haley
and finished ST_drawKeysPopup for drawing keys (TODO: in deathmatch it draws frags instead). Fix to buffer overflow in V_ScreenShot - *ATTN fraggle* - needs fix in trunk! Subversion-branch: /branches/strife-branch Subversion-revision: 2265
2010-09-27+ V_DrawXlaPatch addedSamuel Villareal
+ xlatab lump loading handled in v_video.c + Pop up menus added in st_stuff (not completed still) Subversion-branch: /branches/strife-branch Subversion-revision: 2143
2010-08-29Added patch clipping callback mechanism, since Strife needs to modifyJames Haley
all the V_DrawPatch functions that it uses to return if the patch overlaps the edge of or is completely outside of the framebuffer. This could be extended to handle Final DOOM as well if it proves satisfactory. Subversion-branch: /branches/strife-branch Subversion-revision: 1972
2008-12-01Add missing header includes.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1398
2008-11-02Fix up raven-branch copyright notices.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1375
2008-10-31Move gamma correction table to tables.c.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1373
2008-10-31- Delete the "all-in-one" project file and rename the solution file toRussell Rice
chocolate.sln - Create separate msvc projects for all games supported, which work the same as the codeblocks ones - Include fixes (nothing compiler specific, just additions of stdio.h) to build with msvc Subversion-branch: /branches/raven-branch Subversion-revision: 1371
2008-10-01Merge tinttable variable to common.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1316
2008-10-01Finish merge of hexen/v_video.c to common (oops)Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1315
2008-10-01Rename "FuzzColumn"/"FuzzPatch" for Heretic/Hexen code toSimon Howard
TLColumn/TLPatch for consistency; these are translucent draw functions, not fuzzy draw functions like Doom's R_DrawFuzzColumn. Subversion-branch: /branches/raven-branch Subversion-revision: 1313
2008-09-20Remove bits from heretic/m_misc.c that are in common; changeSimon Howard
V_ScreenShot to take a format string describing the format of the filename for the screen shot file. Subversion-branch: /branches/raven-branch Subversion-revision: 1255
2008-09-20Merge heretic/v_video.c to common code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1252
2008-09-20Remove screens[] and all remaining use of it.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1251
2008-09-20Clean up string munging for selecting PCX filename.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1250
2008-09-20Replace all use of screens[0] by I_VideoBuffer.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1249
2008-09-20Remove screen parameter from V_DrawPatch functions; update code to useSimon Howard
V_UseBuffer where necessary. Subversion-branch: /branches/raven-branch Subversion-revision: 1248
2008-09-20Add a dest_buffer pointer for the v_video code, and V_UseBuffer to allowSimon Howard
that to be temporarily changed. Make V_DrawBlock always draw to the screen. Subversion-branch: /branches/raven-branch Subversion-revision: 1246
2008-09-20Add I_VideoBuffer variable for pointer to screen buffer used bySimon Howard
i_video.c code. Make V_CopyRect always blit to the screen. Subversion-branch: /branches/raven-branch Subversion-revision: 1245
2008-09-11Refactor configuration file system to allow configuration file variablesSimon Howard
to be bound in a distributed fashion around the program. Remove dependency of m_config.c on doom/. Subversion-branch: /branches/raven-branch Subversion-revision: 1222
2008-09-07Move m_bbox.[ch] back to common (needed by v_video.c). Remove someSimon Howard
common->doom header dependencies. Subversion-branch: /branches/raven-branch Subversion-revision: 1211
2008-09-07Move dehacked code to doom/. Split dehacked string replacement code intoSimon Howard
common code and remove dependencies on deh_main.h. Subversion-branch: /branches/raven-branch Subversion-revision: 1210
2008-09-06Split off patch code from r_defs.h into a common file. Remove dependencySimon Howard
of v_video.h on Doom rendering code. Subversion-branch: /branches/raven-branch Subversion-revision: 1206
2008-09-06Remove includes of doomdef.h where possible, move generic parts into topSimon Howard
level. Subversion-branch: /branches/raven-branch Subversion-revision: 1204
2008-03-09Split out configuration file code from m_misc.c into m_config.c. MoveSimon Howard
screenshot code into v_video.c Add M_FileLength common function for finding the length of an open file. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1102
2008-02-09Remove some unneeded functions from i_system.c. Make I_Error exit usingSimon Howard
exit() rather than abort(). Display a message box with the error on Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1065
2008-01-24Make lookup tables const where possible.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1015
2007-06-21Revert previous change from bitshifts to divides; this causes demoSimon Howard
desyncs. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 923
2007-06-16Use divides instead of bitshifts, for claritySimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 910
2007-03-15Use SDL for endianness byte swapping. m_swap.c removed; m_swap.h renamedSimon Howard
to i_swap.h. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 857
2006-10-18Strip out CVS logs, RCS Id tags.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 704
2006-08-06Bomb out with an error when trying to draw patches that go off the screen,Simon Howard
as Vanilla Doom does. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 569
2005-09-17Set the default values for variables in their initialisers. Remove theSimon Howard
"defaultvalue" parameter and associated code from the configuration file parsing code. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 110
2005-07-23Update copyright to GNU GPLSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 8
2005-07-23Initial revisionSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 4