From <Someone>,

Fixes:
- menu shortcuts implemented
- most windows close on space (except for menus with
  PICK_ANY style)
- "hilite_pet" option is implemented
- map scrolling is improved somewhat (it now scrolls if
  the char is within 5 spaces from the edge of the map -
  configurable by #define CLIPAROUND_MARGIN)
- added 3  winhack-specific options:

 win32_map_mode:[tiles|ascii4x6|ascii6x8|ascii8x8
                 |ascii16x8|ascii7x12|ascii8x12|ascii15x12
                 |ascii12x16|ascii10x18|fit_to_screen]=20
 win32_align_status:[left|top|right|bottom]
 win32_align_message:[left|top|right|bottom]

Note: aligning status window to left or right edge of the screen does
not look good.
This commit is contained in:
nethack.allison
2002-01-22 00:30:58 +00:00
parent 5dd46c18ae
commit 2d5361e389
15 changed files with 696 additions and 189 deletions
+2 -6
View File
@@ -471,7 +471,6 @@ void mswin_display_file(const char *filename,BOOLEAN_P must_exist)
} else {
HWND hwnd;
char line[LLEN];
RECT rt;
hwnd = mswin_init_text_window();
@@ -487,10 +486,7 @@ void mswin_display_file(const char *filename,BOOLEAN_P must_exist)
}
(void) dlb_fclose(f);
GetNHApp()->hMenuWnd = hwnd;
GetWindowRect(mswin_hwnd_from_winid(WIN_MAP), &rt);
MoveWindow(hwnd, rt.left, rt.top, rt.right-rt.left, rt.bottom-rt.top, TRUE);
ShowWindow(hwnd, SW_SHOW);
mswin_display_text_window(hwnd);
}
}
@@ -788,7 +784,7 @@ int mswin_nh_poskey(int *x, int *y, int *mod)
while( (event = mswin_input_pop())==NULL ) mswin_main_loop();
if( event->type==NHEVENT_MOUSE ) {
*mod = CLICK_1;
*mod = event->ms.mod;
*x = event->ms.x;
*y = event->ms.y;
key = 0;