I don't have a windows box handy; if I did I would try:
in gui-win32/screen.c change the calls to GetDeviceCaps
to SystemParametersInfo with SPI_GETWORKAREA parameter. something like:
RECT ds; // size of work area in primary display
if( SystemParametersInfo(SPI_GETWORKAREA, 0, &ds, 0) ){
dx = d
Plan 9 doesn't support multiple monitors currently, and I don't know
how rio would like having some weird shaped display if you're monitors
aren't all the same resolution. Having applications support that
would be the hardest part I feel.
Also: You could totally add the support for what you want
drawterm-hiro crashes with inferno on Windows 7 64 bit for me. not sure if
related.
The Windows drawterm is pretty naive about screen
sizes: it doesn't take into account window size,
the stupid title bar, or multiple monitors. Inferno
has dealt with at least some of this. Does anyone
have a drawterm that deals with this better? Or has
anyone tried and run into issues?