mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
More code fixes - now it compiles.
This commit is contained in:
parent
004c7de89b
commit
3ebf8c7e74
3 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
#ifndef __RES_CMAP_H
|
||||
#define __RES_CMAP_H
|
||||
|
||||
struct FColormap;
|
||||
struct FSWColormap;
|
||||
|
||||
void R_InitColormaps ();
|
||||
void R_DeinitColormaps ();
|
||||
|
|
|
@ -1516,6 +1516,7 @@ struct visstyle_t
|
|||
{
|
||||
int ColormapNum; // Which colormap is rendered
|
||||
FSWColormap *BaseColormap; // Base colormap used together with ColormapNum
|
||||
lighttable_t *colormap; // [SP] Restored from GZDoom - will this work?
|
||||
float Alpha;
|
||||
FRenderStyle RenderStyle;
|
||||
};
|
||||
|
|
|
@ -71,6 +71,7 @@ FRenderer *Renderer;
|
|||
|
||||
IMPLEMENT_ABSTRACT_CLASS (DCanvas)
|
||||
IMPLEMENT_ABSTRACT_CLASS (DFrameBuffer)
|
||||
EXTERN_CVAR (Bool, swtruecolor)
|
||||
|
||||
#if defined(_DEBUG) && defined(_M_IX86)
|
||||
#define DBGBREAK { __asm int 3 }
|
||||
|
@ -813,7 +814,7 @@ void DSimpleCanvas::Resize(int width, int height)
|
|||
Pitch = width + MAX(0, CPU.DataL1LineSize - 8);
|
||||
}
|
||||
}
|
||||
int bytes_per_pixel = bgra ? 4 : 1;
|
||||
int bytes_per_pixel = swtruecolor ? 4 : 1;
|
||||
MemBuffer = new BYTE[Pitch * height * bytes_per_pixel];
|
||||
memset (MemBuffer, 0, Pitch * height * bytes_per_pixel);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue