Skip to content

Commit

Permalink
Gamepad: Don't draw command symbols on gamepad buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzw committed Mar 28, 2024
1 parent 7e93cdd commit ade8cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/C4ObjectCom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,12 +982,12 @@ void DrawCommandKey(C4Facet &cgo, int32_t iCom, int32_t iPlayer, bool fPressed,
else {
Game.GraphicsResource.fctXinputButtons.Draw(cgo, true, iButton % 4, iButton / 4);
}
// Show the action symbol on top of the button, in the bottom left corner. Really necessary?
if (iCom == COM_PlayerMenu) {
DrawOffsetScaled(Game.GraphicsResource.fctOKCancel, cgo, 1, 1, 0.0, 0.5, 0.5);
}
else {
DrawOffsetScaled(Game.GraphicsResource.fctCommand, cgo, Com2Control(iBaseCom), isDouble, -0.05, 0.45, 0.6); // This slightly protrudes, but it looks better
// Show the action symbol on top of the button, in the bottom left corner. Really necessary?
//DrawOffsetScaled(Game.GraphicsResource.fctCommand, cgo, Com2Control(iBaseCom), isDouble, -0.05, 0.45, 0.6); // This slightly protrudes, but it looks better
}
return;
}
Expand Down

0 comments on commit ade8cdd

Please sign in to comment.