Defines for window resolution

It always annoyed me that we have `(XRES+BARSIZE)` and `(YRES+MENUSIZE)` all over the source...
This is just some sed with minor fixes afterwards.

P.S. i never knew `float(x)` is valid syntax