mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 23:59:54 -06:00
Removes a few compiler warnings and fix the bitmap for the sticks being cut off on the right
This commit is contained in:
@ -951,7 +951,7 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
unsigned int i = NUM_HOTKEYS;
|
unsigned int i = NUM_HOTKEYS;
|
||||||
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain || g_TASInputDlg->HasFocus())
|
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain || g_TASInputDlg->TASInputDlgHasFocus())
|
||||||
{
|
{
|
||||||
for (i = 0; i < NUM_HOTKEYS; i++)
|
for (i = 0; i < NUM_HOTKEYS; i++)
|
||||||
{
|
{
|
||||||
|
@ -682,7 +682,7 @@ void TASInputDlg::OnCloseWindow(wxCloseEvent& event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TASInputDlg::HasFocus()
|
bool TASInputDlg::TASInputDlgHasFocus()
|
||||||
{
|
{
|
||||||
//allows numbers to be used as hotkeys
|
//allows numbers to be used as hotkeys
|
||||||
if(TextBoxHasFocus())
|
if(TextBoxHasFocus())
|
||||||
@ -753,7 +753,6 @@ void TASInputDlg::OnMouseUpR(wxMouseEvent& event)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxPoint ptM(event.GetPosition());
|
|
||||||
*x = 128;
|
*x = 128;
|
||||||
*y = 128;
|
*y = 128;
|
||||||
|
|
||||||
@ -1027,7 +1026,7 @@ wxBitmap TASInputDlg::CreateStickBitmap(int x, int y)
|
|||||||
y = y/2;
|
y = y/2;
|
||||||
|
|
||||||
wxMemoryDC memDC;
|
wxMemoryDC memDC;
|
||||||
wxBitmap bitmap(127, 127);
|
wxBitmap bitmap(129, 129);
|
||||||
memDC.SelectObject(bitmap);
|
memDC.SelectObject(bitmap);
|
||||||
memDC.SetBackground(*wxLIGHT_GREY_BRUSH);
|
memDC.SetBackground(*wxLIGHT_GREY_BRUSH);
|
||||||
memDC.Clear();
|
memDC.Clear();
|
||||||
|
@ -46,7 +46,7 @@ class TASInputDlg : public wxDialog
|
|||||||
void ButtonTurbo();
|
void ButtonTurbo();
|
||||||
void GetKeyBoardInput(SPADStatus *PadStatus);
|
void GetKeyBoardInput(SPADStatus *PadStatus);
|
||||||
bool TextBoxHasFocus();
|
bool TextBoxHasFocus();
|
||||||
bool HasFocus();
|
bool TASInputDlgHasFocus();
|
||||||
|
|
||||||
wxBitmap CreateStickBitmap(int x, int y);
|
wxBitmap CreateStickBitmap(int x, int y);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user