Skip to content

Commit

Permalink
Fix MSVC compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Sep 1, 2023
1 parent a29cd78 commit cd414c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/screens/helpscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ std::shared_ptr<W_HELP_OVERLAY_SCREEN> W_HELP_OVERLAY_SCREEN::make(const OnClose
newRootFrm->onCancelPressed = newRootFrm->onClickedFunc;

// Add "Close Help Mode" button
const int CloseHelpPadding = 12;
const int CloseHelpMargin = 5;
#define CloseHelpPadding 12
#define CloseHelpMargin 5
auto button = std::make_shared<HelpOverlayCloseButton>();
button->setString(_("Close Help Mode"));
button->FontID = font_regular;
Expand Down Expand Up @@ -961,17 +961,17 @@ void W_HELPSCREEN_CLICKFORM::run(W_CONTEXT *psContext)
inputLoseFocus(); // clear the input buffer.
}

void W_HELPSCREEN_CLICKFORM::setHelpForWidget(const std::shared_ptr<WIDGET>& widget, const WidgetHelp& help)
void W_HELPSCREEN_CLICKFORM::setHelpForWidget(const std::shared_ptr<WIDGET>& widget, const WidgetHelp& widgetHelp)
{
if (!widget) { return; }
auto it = registeredWidgets.find(widget);
if (it != registeredWidgets.end())
{
// update help
it->second.help = help;
it->second.help = widgetHelp;
return;
}
WidgetInfo info(help);
WidgetInfo info(widgetHelp);
info.helpTriggerWidget = HelpTriggerWidget::make(std::dynamic_pointer_cast<W_HELPSCREEN_CLICKFORM>(shared_from_this()), widget);
attach(info.helpTriggerWidget);
registeredWidgets[widget] = info;
Expand Down

0 comments on commit cd414c2

Please sign in to comment.