Skip to content

Commit

Permalink
dx9,dx11: only draw lightgun crosshair when necessary
Browse files Browse the repository at this point in the history
missing check for arcade games
Issue #1363
  • Loading branch information
flyinghead committed Jan 11, 2024
1 parent e7d0a5f commit 552e5b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/rend/dx11/dx11_overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void DX11Overlay::draw(u32 width, u32 height, bool vmu, bool crosshair)
quad.draw(vmuTextureViews[i], samplers->getSampler(false));
}
}
if (crosshair)
if (crosshair && crosshairsNeeded())
{
if (!xhairTexture)
{
Expand Down
2 changes: 1 addition & 1 deletion core/rend/dx9/d3d_overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void D3DOverlay::draw(u32 width, u32 height, bool vmu, bool crosshair)
drawQuad(rect, D3DCOLOR_ARGB(192, 255, 255, 255));
}
}
if (crosshair)
if (crosshair && crosshairsNeeded())
{
if (!xhairTexture)
{
Expand Down

0 comments on commit 552e5b7

Please sign in to comment.