I'm getting a really odd problem WRT windowed mode and large grid/view sizes. I have a dual 1280x1024 monitor set up, and to prevent DF from minimizing when tabbing to other programs I run it in windowed mode:
[WINDOWED:YES]
[GRID:160:85]
[WINDOWEDX:1280] # 8x160
[WINDOWEDY:1020] # 12x85
[FONT:plac1d_640x300.bmp] # 8x12 characters
Not counting the border and titlebar, this results in a window with a height of 1011 (/1036 counting border+titlebar), not the expected 1020 (/1045). This results in an annoying glitch:
The first line is mostly cut off, the last line is fully visible. However, mouse coordinates seem to be handled as if it were expecting the opposite -- clicking the mouse registers on the tile visible almost a full tile up from it's Y coordinate, rather than under the mouse itself.
As a workaround, I'm shaving off 1 y in my GRID and changing the resolution accordingly:
[GRID:160:84]
[WINDOWEDX:1280] # 160x8
[WINDOWEDY:1008] # 84x12
This still results in a window which, counting the titlebar and border, is still larger than my physical screen dimensions, but this seems to eliminate the window misshapen issue and the corresponding mouse/grid alignment being out of whack. It's worth noting that changing the GRID alone does not fix it, as the screen is still rendered off-center (with BLACK_SPACE), with the mouse behaving "properly", highlighting tiles a little under 1 tile above it's location.
The bug occurs regardless of GRAPHICS or BLACK_SPACE being enabled, as long as the graphics settings correspond. It seems to occur everywhere, from the main menu to dwarf fort mode.
Hope this helps.