Skip to content

Commit

Permalink
Clean up: DrawMain()
Browse files Browse the repository at this point in the history
Remove unused function parameter
  • Loading branch information
kphoenix137 authored and AJenbo committed Apr 17, 2024
1 parent 3505ec1 commit b00bf4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/engine/render/scrollrt.cpp
Expand Up @@ -1326,7 +1326,7 @@ void DoBlitScreen(int x, int y, int w, int h)
* @param drawSbar Render belt
* @param drawBtn Render panel buttons
*/
void DrawMain(const Surface &out, int dwHgt, bool drawDesc, bool drawHp, bool drawMana, bool drawSbar, bool drawBtn)
void DrawMain(int dwHgt, bool drawDesc, bool drawHp, bool drawMana, bool drawSbar, bool drawBtn)
{
if (!gbActive || RenderDirectlyToOutputSurface) {
return;
Expand Down Expand Up @@ -1631,7 +1631,7 @@ void scrollrt_draw_game_screen()

const Surface &out = GlobalBackBuffer();
UndrawCursor(out);
DrawMain(out, hgt, false, false, false, false, false);
DrawMain(hgt, false, false, false, false, false);
DrawCursor(out);

RenderPresent();
Expand Down Expand Up @@ -1706,7 +1706,7 @@ void DrawAndBlit()

LuaEvent("GameDrawComplete");

DrawMain(out, hgt, drawInfoBox, drawHealth, drawMana, drawBelt, drawControlButtons);
DrawMain(hgt, drawInfoBox, drawHealth, drawMana, drawBelt, drawControlButtons);

#ifdef _DEBUG
DrawConsole(out);
Expand Down

0 comments on commit b00bf4e

Please sign in to comment.