microsoftarchive / openFrameworks

OpenFrameworks is a cross platform open source toolkit for creative coding in C++.
http://openframeworks.cc
Other
39 stars 24 forks source link

ofGetWindowWidth doesn't work correctly on Surface2 device #45

Closed ericmitt closed 10 years ago

ericmitt commented 10 years ago

I use ofGetWindowWidth() in my code, it is working correctly on my Lenovo X1 giving me the total width of my screen, but when I deploy this code on a Surface2 pro device, the image was approx. 80% of the screen width. What's wrong, what I missed ?

the code I used: windowDepthRatio = (float)ofGetWindowWidth() / (float)depthFrameDescription->Width;

Thanks eric

ericmitt commented 10 years ago

duplicate issue, I close it