Hi everyone.
I'm trying to create a solution for keeping the screen the same exact aspect ratio (for a game set to full screen-scale), no matter what the user does to the browser window size or shape, and no matter what their screen resolution.
Here's what I've got so far:
http://www.brashmonkeygames.com/brashmonkey/temp/windowsizeBug.zip
What I've got so far works for the most part, but it breaks when you shrink either the width or the height of the browser window to very small sizes.
It seems to be that for some reason, at this point, the "window size" and "window height" values break. I've found mention of these returning fualty values, but I dont see that its been officilally decleaird a bug.
Anyone got a solution?
How about an automatic checkbox feature for "fullscreen-scaling" that automatically creates such a border and lets you set its RGB? That would be really nice. This is something MANY people will want...especialy becuase it will make developing for cross platform much easier in this regard.
thanks.