- Use gitinfo.h instead of svnrevision.h for versioning.
- Use functions in gitinfo.cpp to retrieve the strings from gitinfo.h so that changes to gitinfo.h only require recompiling one file instead of several.
This commit is contained in:
parent
fece189bdb
commit
98ac224e53
15 changed files with 140 additions and 73 deletions
|
|
@ -632,8 +632,10 @@ void WritePCXfile (FILE *file, const BYTE *buffer, const PalEntry *palette,
|
|||
void WritePNGfile (FILE *file, const BYTE *buffer, const PalEntry *palette,
|
||||
ESSType color_type, int width, int height, int pitch)
|
||||
{
|
||||
char software[100];
|
||||
mysnprintf(software, countof(software), GAMENAME " %s", GetVersionString());
|
||||
if (!M_CreatePNG (file, buffer, palette, color_type, width, height, pitch) ||
|
||||
!M_AppendPNGText (file, "Software", GAMENAME DOTVERSIONSTR) ||
|
||||
!M_AppendPNGText (file, "Software", software) ||
|
||||
!M_FinishPNG (file))
|
||||
{
|
||||
Printf ("Could not create screenshot.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue