mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +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];
|
||||
#ifdef USE_OPENGL
|
||||
int32_t lazyselector = g_lazy_tileselector && usehightile;
|
||||
int32_t usehitile;
|
||||
#else
|
||||
int32_t lazyselector = g_lazy_tileselector;
|
||||
#endif
|
||||
int32_t runi=0, usehitile;
|
||||
int32_t runi=0;
|
||||
static uint8_t loadedhitile[(MAXTILES+7)>>3];
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
|
@ -4063,7 +4064,9 @@ restart:
|
|||
|
||||
if (iTile < 0 || iTile >= localartlookupnum)
|
||||
continue;
|
||||
#ifdef USE_OPENGL
|
||||
usehitile = (runi || !lazyselector);
|
||||
#endif
|
||||
|
||||
idTile = localartlookup[ iTile ];
|
||||
if (loadedhitile[idTile>>3]&(1<<(idTile&7)))
|
||||
|
@ -4071,7 +4074,9 @@ restart:
|
|||
if (runi==1)
|
||||
continue;
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
usehitile = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Get pointer to tile's raw pixel data
|
||||
|
@ -4082,8 +4087,10 @@ restart:
|
|||
x = XTile * TileDim;
|
||||
y = YTile * TileDim+offset;
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
if (polymost_drawtilescreen(x, y, idTile, TileDim, s_TileZoom,
|
||||
usehitile, loadedhitile))
|
||||
#endif
|
||||
classic_drawtilescreen(x, y, idTile, TileDim, pRawPixels);
|
||||
|
||||
if (localartfreq[iTile] != 0 && y >= 0 && y <= ydim-20)
|
||||
|
|
Loading…
Reference in a new issue