- replaced another large batch of homegrown type use.

This commit is contained in:
Christoph Oelckers 2017-03-08 18:44:37 +01:00
commit 6dee9ff566
57 changed files with 656 additions and 656 deletions

View file

@ -51,15 +51,15 @@ class FAutomapTexture : public FTexture
public:
~FAutomapTexture ();
const BYTE *GetColumn (unsigned int column, const Span **spans_out);
const BYTE *GetPixels ();
const uint8_t *GetColumn (unsigned int column, const Span **spans_out);
const uint8_t *GetPixels ();
void Unload ();
void MakeTexture ();
FAutomapTexture (int lumpnum);
private:
BYTE *Pixels;
uint8_t *Pixels;
Span DummySpan[2];
};
@ -89,7 +89,7 @@ FAutomapTexture::FAutomapTexture (int lumpnum)
: FTexture(NULL, lumpnum), Pixels(NULL)
{
Width = 320;
Height = WORD(Wads.LumpLength(lumpnum) / 320);
Height = uint16_t(Wads.LumpLength(lumpnum) / 320);
CalcBitSize ();
DummySpan[0].TopOffset = 0;
@ -134,9 +134,9 @@ void FAutomapTexture::MakeTexture ()
{
int x, y;
FMemLump data = Wads.ReadLump (SourceLump);
const BYTE *indata = (const BYTE *)data.GetMem();
const uint8_t *indata = (const uint8_t *)data.GetMem();
Pixels = new BYTE[Width * Height];
Pixels = new uint8_t[Width * Height];
for (x = 0; x < Width; ++x)
{
@ -153,7 +153,7 @@ void FAutomapTexture::MakeTexture ()
//
//==========================================================================
const BYTE *FAutomapTexture::GetPixels ()
const uint8_t *FAutomapTexture::GetPixels ()
{
if (Pixels == NULL)
{
@ -168,7 +168,7 @@ const BYTE *FAutomapTexture::GetPixels ()
//
//==========================================================================
const BYTE *FAutomapTexture::GetColumn (unsigned int column, const Span **spans_out)
const uint8_t *FAutomapTexture::GetColumn (unsigned int column, const Span **spans_out)
{
if (Pixels == NULL)
{