Revision history for ioScreenSize
Additions:
Same logic as the iPhone, we get the bounds of the mainView which is attached to window with index of 1.
Deletions:
Additions:
returns the GetClientRect of the browser or native window, if iconified then return size remembered from last call.
Additions:
Asks the diplay logic for the size of the window, or returns ((64 < < 16) | 64) if headless
Deletions:
Additions:
If there is no screen by default it returns ((16 < < 16) | 16), or some other number.
Deletions:
Additions:
(w < < 16) | (h & 0xFFFF); /* w Width is high 16 bits; h height is low 16 bits */