enable the bmp screenshots code. needs testing.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5121 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2017-06-26 09:35:23 +00:00
parent 419b2b1f7f
commit 783ef32e67
2 changed files with 5 additions and 3 deletions

View File

@ -2117,7 +2117,7 @@ qboolean screenshotJPEG(char *filename, enum fs_relative fsroot, int compression
#ifdef AVAIL_PNGLIB
int Image_WritePNG (char *filename, enum fs_relative fsroot, int compression, void **buffers, int numbuffers, int bytestride, int width, int height, enum uploadfmt fmt);
#endif
void WriteBMPFile(char *filename, enum fs_relative fsroot, qbyte *in, int bytestride, int width, int height);
qboolean WriteBMPFile(char *filename, enum fs_relative fsroot, qbyte *in, int instride, int width, int height, uploadfmt_t fmt);
qboolean WriteTGA(char *filename, enum fs_relative fsroot, qbyte *fte_restrict rgb_buffer, int bytestride, int width, int height, enum uploadfmt fmt)
{

View File

@ -2204,7 +2204,7 @@ qbyte *ReadBMPFile(qbyte *buf, int length, int *width, int *height)
return NULL;
}
void WriteBMPFile(char *filename, enum fs_relative fsroot, qbyte *in, int instride, int width, int height, uploadfmt_t fmt)
qboolean WriteBMPFile(char *filename, enum fs_relative fsroot, qbyte *in, int instride, int width, int height, uploadfmt_t fmt)
{
int y;
bmpheader_t h;
@ -2263,7 +2263,7 @@ void WriteBMPFile(char *filename, enum fs_relative fsroot, qbyte *in, int instri
break;
default:
return;
return false;
}
@ -2305,6 +2305,8 @@ void WriteBMPFile(char *filename, enum fs_relative fsroot, qbyte *in, int instri
COM_WriteFile(filename, fsroot, data, h.Size);
BZ_Free(data);
return true;
}