HotKey: fix warnings
This commit is contained in:
parent
235fa05171
commit
68c70be960
|
@ -153,6 +153,8 @@ const int num_hotkeys = (sizeof(hotkey_labels) / sizeof(hotkey_labels[0]));
|
|||
namespace HotkeyManagerEmu
|
||||
{
|
||||
|
||||
static u32 hotkeyDown[6];
|
||||
|
||||
static InputConfig s_config("Hotkeys", _trans("Hotkeys"), "Hotkeys");
|
||||
InputConfig* GetConfig()
|
||||
{
|
||||
|
|
|
@ -36,6 +36,4 @@ namespace HotkeyManagerEmu
|
|||
InputConfig* GetConfig();
|
||||
void GetStatus(u8 _port, HotkeyStatus* _pKeyboardStatus);
|
||||
bool IsPressed(int Id, bool held);
|
||||
|
||||
static u32 hotkeyDown[6];
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ struct ShapePosition
|
|||
};
|
||||
|
||||
// regular octagon
|
||||
void DrawOctagon(wxDC* dc, ShapePosition p)
|
||||
static void DrawOctagon(wxDC* dc, ShapePosition p)
|
||||
{
|
||||
const int vertices = 8;
|
||||
double radius = p.max;
|
||||
|
@ -63,7 +63,7 @@ void DrawOctagon(wxDC* dc, ShapePosition p)
|
|||
}
|
||||
|
||||
// irregular dodecagon
|
||||
void DrawDodecagon(wxDC* dc, ShapePosition p)
|
||||
static void DrawDodecagon(wxDC* dc, ShapePosition p)
|
||||
{
|
||||
const int vertices = 12;
|
||||
|
||||
|
@ -108,7 +108,7 @@ static void DrawCoordinate(wxDC &dc, ControlState x, ControlState y)
|
|||
DrawCenteredRectangle(dc, xc, yc, COORD_VIS_SIZE, COORD_VIS_SIZE);
|
||||
}
|
||||
|
||||
void DrawButton(unsigned int* const bitmasks, unsigned int buttons, unsigned int n, wxDC& dc, ControlGroupBox* g, unsigned int row)
|
||||
static void DrawButton(unsigned int* const bitmasks, unsigned int buttons, unsigned int n, wxDC& dc, ControlGroupBox* g, unsigned int row)
|
||||
{
|
||||
if (buttons & bitmasks[(row * 8) + n])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue