mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 09:35:40 +00:00
parent
9c82096f8f
commit
d7f8884291
|
@ -274,7 +274,7 @@ void GPU_HW::IncludeVRAMDityRectangle(const Common::Rectangle<u32>& rect)
|
||||||
// shadow texture is updated
|
// shadow texture is updated
|
||||||
if (!m_draw_mode.IsTexturePageChanged() &&
|
if (!m_draw_mode.IsTexturePageChanged() &&
|
||||||
(m_draw_mode.GetTexturePageRectangle().Intersects(rect) ||
|
(m_draw_mode.GetTexturePageRectangle().Intersects(rect) ||
|
||||||
m_draw_mode.IsUsingPalette() && m_draw_mode.GetTexturePaletteRectangle().Intersects(rect)))
|
(m_draw_mode.IsUsingPalette() && m_draw_mode.GetTexturePaletteRectangle().Intersects(rect))))
|
||||||
{
|
{
|
||||||
m_draw_mode.SetTexturePageChanged();
|
m_draw_mode.SetTexturePageChanged();
|
||||||
}
|
}
|
||||||
|
|
|
@ -319,8 +319,11 @@ void QtHostInterface::updateControllerInputMap()
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const auto button_names = Controller::GetButtonNames(ctype);
|
const auto button_names = Controller::GetButtonNames(ctype);
|
||||||
for (const auto& [button_name, button_code] : button_names)
|
for (const auto& it : button_names)
|
||||||
{
|
{
|
||||||
|
const std::string& button_name = it.first;
|
||||||
|
const s32 button_code = it.second;
|
||||||
|
|
||||||
QVariant var = m_qsettings.value(
|
QVariant var = m_qsettings.value(
|
||||||
QStringLiteral("Controller%1/Button%2").arg(controller_index + 1).arg(QString::fromStdString(button_name)));
|
QStringLiteral("Controller%1/Button%2").arg(controller_index + 1).arg(QString::fromStdString(button_name)));
|
||||||
if (!var.isValid())
|
if (!var.isValid())
|
||||||
|
|
|
@ -44,7 +44,7 @@ private:
|
||||||
bool CreateSwapChainRTV();
|
bool CreateSwapChainRTV();
|
||||||
bool CreateImGuiContext();
|
bool CreateImGuiContext();
|
||||||
|
|
||||||
void Render();
|
void Render() override;
|
||||||
void RenderDisplay();
|
void RenderDisplay();
|
||||||
|
|
||||||
SDL_Window* m_window = nullptr;
|
SDL_Window* m_window = nullptr;
|
||||||
|
|
|
@ -39,7 +39,7 @@ private:
|
||||||
bool CreateImGuiContext();
|
bool CreateImGuiContext();
|
||||||
bool CreateGLResources();
|
bool CreateGLResources();
|
||||||
|
|
||||||
void Render();
|
void Render() override;
|
||||||
void RenderDisplay();
|
void RenderDisplay();
|
||||||
|
|
||||||
SDL_Window* m_window = nullptr;
|
SDL_Window* m_window = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue