Skip to content

Commit

Permalink
Fix erroneous rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Sep 17, 2024
1 parent 75b2d5f commit 2a837c4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Source/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ void InitMainPanel()
static const uint16_t CharButtonsFrameWidths[9] { 95, 41, 41, 41, 41, 41, 41, 41, 41 };
pChrButtons = LoadCel("data\\charbut", CharButtonsFrameWidths);
}
ResetMainMainPanelButtons();
ResetMainPanelButtons();
if (!HeadlessMode)
pDurIcons = LoadCel("items\\duricons", 32);
for (bool &buttonEnabled : CharPanelButton)
Expand Down Expand Up @@ -955,7 +955,7 @@ void DrawMainPanel(const Surface &out)
DrawInfoBox(out);
}

void DrawMainMainPanelButtons(const Surface &out)
void DrawMainPanelButtons(const Surface &out)
{
const Point mainPanelPosition = GetMainPanel().position;
int totalButtons = IsChatAvailable() ? TotalMpMainPanelButtons : TotalSpMainPanelButtons;
Expand All @@ -982,7 +982,7 @@ void DrawMainMainPanelButtons(const Surface &out)
}
}

void ResetMainMainPanelButtons()
void ResetMainPanelButtons()
{
for (bool &panelButton : MainPanelButtons)
panelButton = false;
Expand Down
4 changes: 2 additions & 2 deletions Source/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ void DrawMainPanel(const Surface &out);
* Draws the control panel buttons in their current state. If the button is in the default
* state draw it from the panel cel(extract its sub-rect). Else draw it from the buttons cel.
*/
void DrawMainMainPanelButtons(const Surface &out);
void DrawMainPanelButtons(const Surface &out);

/**
* Clears panel button flags.
*/
void ResetMainMainPanelButtons();
void ResetMainPanelButtons();

/**
* Checks if the mouse cursor is within any of the panel buttons and flag it if so.
Expand Down
2 changes: 1 addition & 1 deletion Source/controls/touch/event_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void HandleBottomPanelInteraction(const SDL_Event &event)
if (!gbRunGame || !MyPlayer->HoldItem.isEmpty())
return;

ResetMainMainPanelButtons();
ResetMainPanelButtons();

if (event.type != SDL_FINGERUP) {
SpellSelectFlag = true;
Expand Down
2 changes: 1 addition & 1 deletion Source/engine/render/scrollrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ void DrawAndBlit()
DrawSpell(out);
}
if (drawControlButtons) {
DrawMainMainPanelButtons(out);
DrawMainPanelButtons(out);
}
if (drawBelt) {
DrawInvBelt(out);
Expand Down

0 comments on commit 2a837c4

Please sign in to comment.