Skip to content

Commit

Permalink
- removed some unused stuff from engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Apr 21, 2021
1 parent b8f9bdb commit 9092b5c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions source/build/include/build.h
Expand Up @@ -352,14 +352,10 @@ void videoSetCorrectedAspect();
void videoSetViewableArea(int32_t x1, int32_t y1, int32_t x2, int32_t y2);
void renderSetAspect(int32_t daxrange, int32_t daaspect);

void plotpixel(int32_t x, int32_t y, char col);
FCanvasTexture *renderSetTarget(int16_t tilenume);
void renderRestoreTarget();

void setVideoMode();
void videoInit();
void videoClearViewableArea(int32_t dacol);
void videoClearScreen(int32_t dacol);

class F2DDrawer;

Expand Down
19 changes: 0 additions & 19 deletions source/build/src/engine.cpp
Expand Up @@ -1563,24 +1563,6 @@ void videoSetViewableArea(int32_t x1, int32_t y1, int32_t x2, int32_t y2)



//
// clearview
//
void videoClearViewableArea(int32_t dacol)
{
GLInterface.ClearScreen(dacol, false);
}


//
// clearallviews
//
void videoClearScreen(int32_t dacol)
{
GLInterface.ClearScreen(dacol | PalEntry(255,0,0,0));
}


//MUST USE RESTOREFORDRAWROOMS AFTER DRAWING

static int32_t setviewcnt = 0; // interface layers use this now
Expand Down Expand Up @@ -1736,7 +1718,6 @@ void alignflorslope(int16_t dasect, int32_t x, int32_t y, int32_t z)

int tilehasmodelorvoxel(int const tilenume, int pal)
{
UNREFERENCED_PARAMETER(pal);
return
(mdinited && hw_models && tile2model[Ptile2tile(tilenume, pal)].modelid != -1) ||
(r_voxels && tiletovox[tilenume] != -1);
Expand Down
1 change: 0 additions & 1 deletion source/core/gamecontrol.cpp
Expand Up @@ -1050,7 +1050,6 @@ void setVideoMode()
ydim = screen->GetHeight();
V_UpdateModeSize(xdim, ydim);
videoSetViewableArea(0, 0, xdim - 1, ydim - 1);
videoClearScreen(0);
}

//==========================================================================
Expand Down

0 comments on commit 9092b5c

Please sign in to comment.