Removing temporary debugging code and fixing compiler warnings.
This commit is contained in:
@@ -1858,7 +1858,7 @@ void nethack_enter_nttty()
|
|||||||
|
|
||||||
/* load default keyboard handler */
|
/* load default keyboard handler */
|
||||||
HKL keyboard_layout = GetKeyboardLayout(0);
|
HKL keyboard_layout = GetKeyboardLayout(0);
|
||||||
DWORD primary_language = (DWORD) keyboard_layout & 0x3f;
|
DWORD primary_language = (UINT_PTR) keyboard_layout & 0x3f;
|
||||||
|
|
||||||
if (primary_language == LANG_ENGLISH) {
|
if (primary_language == LANG_ENGLISH) {
|
||||||
if (!load_keyboard_handler("nhdefkey"))
|
if (!load_keyboard_handler("nhdefkey"))
|
||||||
|
|||||||
@@ -391,10 +391,6 @@ PlayerSelectorDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
break;
|
break;
|
||||||
case NM_KILLFOCUS:
|
case NM_KILLFOCUS:
|
||||||
{
|
{
|
||||||
char buf[64];
|
|
||||||
sprintf(buf, "KILLFOCUS %lx\n", (unsigned long) control);
|
|
||||||
OutputDebugStringA(buf);
|
|
||||||
|
|
||||||
if (data->focus == data->control_race) {
|
if (data->focus == data->control_race) {
|
||||||
data->focus = NULL;
|
data->focus = NULL;
|
||||||
ListView_RedrawItems(data->control_race, 0, data->race_count - 1);
|
ListView_RedrawItems(data->control_race, 0, data->race_count - 1);
|
||||||
@@ -406,9 +402,6 @@ PlayerSelectorDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
break;
|
break;
|
||||||
case NM_SETFOCUS:
|
case NM_SETFOCUS:
|
||||||
{
|
{
|
||||||
char buf[64];
|
|
||||||
sprintf(buf, "SETFOCUS %lx\n", (unsigned long) control);
|
|
||||||
OutputDebugStringA(buf);
|
|
||||||
data->focus = control;
|
data->focus = control;
|
||||||
|
|
||||||
if (control == data->control_race) {
|
if (control == data->control_race) {
|
||||||
@@ -716,15 +709,9 @@ plselDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
|||||||
if (lpdis->itemID < 0)
|
if (lpdis->itemID < 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
HWND control = GetDlgItem(hWnd, wParam);
|
HWND control = GetDlgItem(hWnd, (int) wParam);
|
||||||
int i = lpdis->itemID;
|
int i = lpdis->itemID;
|
||||||
|
|
||||||
{
|
|
||||||
char buf[64];
|
|
||||||
sprintf(buf, "DRAW %lx %d\n", (unsigned long)control, i);
|
|
||||||
OutputDebugStringA(buf);
|
|
||||||
}
|
|
||||||
|
|
||||||
const char * string;
|
const char * string;
|
||||||
|
|
||||||
boolean ok = TRUE;
|
boolean ok = TRUE;
|
||||||
@@ -774,12 +761,6 @@ plselDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
|||||||
client_rt.left + ListView_GetColumnWidth(lpdis->hwndItem, 0),
|
client_rt.left + ListView_GetColumnWidth(lpdis->hwndItem, 0),
|
||||||
lpdis->rcItem.bottom);
|
lpdis->rcItem.bottom);
|
||||||
DrawFocusRect(lpdis->hDC, &rect);
|
DrawFocusRect(lpdis->hDC, &rect);
|
||||||
|
|
||||||
{
|
|
||||||
char buf[64];
|
|
||||||
sprintf(buf, "FOCUS %lx %d\n", (unsigned long)control, i);
|
|
||||||
OutputDebugStringA(buf);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user