mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 16:50:48 +00:00
whitespace, small opt in pcx.c
This commit is contained in:
parent
eb8c267925
commit
6bae2b3010
2 changed files with 11 additions and 17 deletions
11
source/pcx.c
11
source/pcx.c
|
@ -154,14 +154,13 @@ LoadPCX (QFile *f, int convert)
|
|||
*/
|
||||
void
|
||||
WritePCXfile (char *filename, byte * data, int width, int height,
|
||||
int rowbytes, byte * palette, qboolean upload, qboolean flip)
|
||||
int rowbytes, byte * palette, qboolean upload, qboolean flip)
|
||||
{
|
||||
int i, j, length;
|
||||
pcx_t *pcx;
|
||||
byte *pack;
|
||||
int i, j, length;
|
||||
pcx_t *pcx;
|
||||
byte *pack;
|
||||
|
||||
pcx = Hunk_TempAlloc (width * height * 2 + 1000);
|
||||
if (pcx == NULL) {
|
||||
if (!(pcx = Hunk_TempAlloc (width * height * 2 + 1000))) {
|
||||
Con_Printf ("WritePCXfile: not enough memory\n");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue