Fix compile warning in clang, and compile error for libretro build.

This commit is contained in:
Stephen Anthony 2020-09-02 12:12:38 -02:30
parent a86afe97c6
commit 34c937a143
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ QuadTariWidget::QuadTariWidget(GuiObject* boss, const GUI::Font& font,
{
string label = (isLeftPort() ? "Left" : "Right") + string(" (QuadTari)");
StaticTextWidget* t = new StaticTextWidget(boss, font, x, y + 2, label);
QuadTari& qt = (QuadTari&)controller;
QuadTari& qt = static_cast<QuadTari&>(controller);
x += font.getMaxCharWidth() * 2;
y = t->getBottom() + font.getFontHeight() * 1.25;

View File

@ -113,6 +113,7 @@ SOURCES_CXX := \
$(CORE_DIR)/emucore/PointingDevice.cxx \
$(CORE_DIR)/emucore/Props.cxx \
$(CORE_DIR)/emucore/PropsSet.cxx \
$(CORE_DIR)/emucore/QuadTari.cxx \
$(CORE_DIR)/emucore/SaveKey.cxx \
$(CORE_DIR)/emucore/Serializer.cxx \
$(CORE_DIR)/emucore/Settings.cxx \