<email deleted>

bugfix: map position was calculated incorrectly when switching into
fit-to-screen mode.
This commit is contained in:
nethack.allison
2002-01-31 00:16:32 +00:00
parent 52141ce87f
commit ab9bfc0489

View File

@@ -106,7 +106,8 @@ void mswin_map_stretch(HWND hWnd, LPSIZE lpsz, BOOL redraw)
data->xPageSize = COLNO+1; /* disable scroll bar */
else
data->xPageSize = wnd_size.cx/data->xScrTile;
if( wnd_size.cx/data->xScrTile >= COLNO ) {
if( data->xPageSize >= COLNO ) {
data->xPos = 0;
GetNHApp()->bNoHScroll = TRUE;
} else {
@@ -128,7 +129,7 @@ void mswin_map_stretch(HWND hWnd, LPSIZE lpsz, BOOL redraw)
else
data->yPageSize = wnd_size.cy/data->yScrTile;
if( wnd_size.cy/data->yScrTile >= ROWNO ) {
if( data->yPageSize >= ROWNO ) {
data->yPos = 0;
GetNHApp()->bNoVScroll = TRUE;
} else {