mirror of https://github.com/snes9xgit/snes9x.git
Win32: add missing Ptr changes (DaMan)
This commit is contained in:
parent
43e04cddc7
commit
688c164fcb
|
@ -833,12 +833,12 @@ HWND CreateInputCustom(HWND hwndParent)
|
|||
}
|
||||
InputCust * GetInputCustom(HWND hwnd)
|
||||
{
|
||||
return (InputCust *)GetWindowLong(hwnd, 0);
|
||||
return (InputCust *)GetWindowLongPtr(hwnd, 0);
|
||||
}
|
||||
|
||||
void SetInputCustom(HWND hwnd, InputCust *icp)
|
||||
{
|
||||
SetWindowLongPtr(hwnd, 0, (LONG)icp);
|
||||
SetWindowLongPtr(hwnd, 0, (LONG_PTR)icp);
|
||||
}
|
||||
|
||||
LRESULT InputCustom_OnPaint(InputCust *ccp, WPARAM wParam, LPARAM lParam)
|
||||
|
|
|
@ -10080,9 +10080,9 @@ INT_PTR CALLBACK DlgCheatSearchAdd(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lP
|
|||
memset(buf,0,sizeof(TCHAR) * 12);
|
||||
_stprintf(buf, TEXT("%u"), new_cheat->saved_val);
|
||||
SetDlgItemText(hDlg, IDC_NC_PREVVAL, buf);
|
||||
SetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_NEWVAL), GWL_STYLE, ES_NUMBER |GetWindowLong(GetDlgItem(hDlg, IDC_NC_NEWVAL),GWL_STYLE));
|
||||
SetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_CURRVAL), GWL_STYLE, ES_NUMBER |GetWindowLong(GetDlgItem(hDlg, IDC_NC_CURRVAL),GWL_STYLE));
|
||||
SetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_PREVVAL), GWL_STYLE, ES_NUMBER |GetWindowLong(GetDlgItem(hDlg, IDC_NC_PREVVAL),GWL_STYLE));
|
||||
SetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_NEWVAL), GWL_STYLE, ES_NUMBER |GetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_NEWVAL),GWL_STYLE));
|
||||
SetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_CURRVAL), GWL_STYLE, ES_NUMBER |GetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_CURRVAL),GWL_STYLE));
|
||||
SetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_PREVVAL), GWL_STYLE, ES_NUMBER |GetWindowLongPtr(GetDlgItem(hDlg, IDC_NC_PREVVAL),GWL_STYLE));
|
||||
if(new_cheat->size==1)
|
||||
{
|
||||
SendDlgItemMessage(hDlg, IDC_NC_CURRVAL,EM_SETLIMITTEXT, 3, 0);
|
||||
|
|
Loading…
Reference in New Issue