mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Fix USE_OPENGL=0 build.
git-svn-id: https://svn.eduke32.com/eduke32@4081 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
92b441cb11
commit
4f2bc62dc2
1 changed files with 8 additions and 1 deletions
|
@ -4033,10 +4033,11 @@ static int32_t DrawTiles(int32_t iTopLeft, int32_t iSelected, int32_t nXTiles, i
|
||||||
char szT[128];
|
char szT[128];
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
int32_t lazyselector = g_lazy_tileselector && usehightile;
|
int32_t lazyselector = g_lazy_tileselector && usehightile;
|
||||||
|
int32_t usehitile;
|
||||||
#else
|
#else
|
||||||
int32_t lazyselector = g_lazy_tileselector;
|
int32_t lazyselector = g_lazy_tileselector;
|
||||||
#endif
|
#endif
|
||||||
int32_t runi=0, usehitile;
|
int32_t runi=0;
|
||||||
static uint8_t loadedhitile[(MAXTILES+7)>>3];
|
static uint8_t loadedhitile[(MAXTILES+7)>>3];
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
|
@ -4063,7 +4064,9 @@ restart:
|
||||||
|
|
||||||
if (iTile < 0 || iTile >= localartlookupnum)
|
if (iTile < 0 || iTile >= localartlookupnum)
|
||||||
continue;
|
continue;
|
||||||
|
#ifdef USE_OPENGL
|
||||||
usehitile = (runi || !lazyselector);
|
usehitile = (runi || !lazyselector);
|
||||||
|
#endif
|
||||||
|
|
||||||
idTile = localartlookup[ iTile ];
|
idTile = localartlookup[ iTile ];
|
||||||
if (loadedhitile[idTile>>3]&(1<<(idTile&7)))
|
if (loadedhitile[idTile>>3]&(1<<(idTile&7)))
|
||||||
|
@ -4071,7 +4074,9 @@ restart:
|
||||||
if (runi==1)
|
if (runi==1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef USE_OPENGL
|
||||||
usehitile = 1;
|
usehitile = 1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get pointer to tile's raw pixel data
|
// Get pointer to tile's raw pixel data
|
||||||
|
@ -4082,8 +4087,10 @@ restart:
|
||||||
x = XTile * TileDim;
|
x = XTile * TileDim;
|
||||||
y = YTile * TileDim+offset;
|
y = YTile * TileDim+offset;
|
||||||
|
|
||||||
|
#ifdef USE_OPENGL
|
||||||
if (polymost_drawtilescreen(x, y, idTile, TileDim, s_TileZoom,
|
if (polymost_drawtilescreen(x, y, idTile, TileDim, s_TileZoom,
|
||||||
usehitile, loadedhitile))
|
usehitile, loadedhitile))
|
||||||
|
#endif
|
||||||
classic_drawtilescreen(x, y, idTile, TileDim, pRawPixels);
|
classic_drawtilescreen(x, y, idTile, TileDim, pRawPixels);
|
||||||
|
|
||||||
if (localartfreq[iTile] != 0 && y >= 0 && y <= ydim-20)
|
if (localartfreq[iTile] != 0 && y >= 0 && y <= ydim-20)
|
||||||
|
|
Loading…
Reference in a new issue