hi trevor,
I'm having a little trouble with screensizes in Gem - has anyone else been through this already?
yes. some problems could be caused by the graphic driver. i had a problems that squares looked like rectangles in fullsreen mode...
Is there a function that can tell you the size of the window? Or are there functions that link mouse-coordinates to object coordinates?
to convert mouse-coordinates(pixels) to "gem-coordinates" i use
[inlet] minus (windowsize in pixel / 2) minus 1 multiplied by 4
[inlet] | [/ 100] (screensize is 200) | [- 1] | [* 4] | [outlet]
i don't know, if that is an official algorithm, it seems to work with sizes 200, 400, 600 but has some rounding errors with some other screensizes...
Also (using Windows 98) when I maximise the Gem window, I can't get rid of it again - even with Alt-Tab or by programming the patch to minimise it again. Is there another way to do it?
how do you maximze? this should work, at least it does with XP... btw, there is also a "fullscreen 1" command. for fullscreen mode.
marius.