My app was working fine. Then I tried to adapt it to the Retina display. I added the
High Resolution Capable =
YES line to the
.plist file and, indeed, everything became smaller.
So I duplicated both the width and height of the window in
And that’s when things started acting strange.
An image which used to fill the whole screen now was no longer being drawn from (0,0) but appears arbitrarily translated in the Y-axis. Then I dragged the window to resize it slightly and, to my surprise, as soon as I released the mouse… the image started being drawn at the correct place (0,0).
So, something refreshed and corrected whatever was wrong.
I logged ofGetWidth() which starts by returning
1920 (the width defined in
main.cpp) but when the window is slightly resized it suddenly changes to
2560 (which indeed seems to be the correct width at that size).
So either there is a bug or I’m not initialised things properly. Must I do anything else besides adding the line to the
I even tried to use ofSetWindowShape() to change the window size programatically in the hope that it would solve the program but to no avail.
I’m using version 10.1.
Any suggestions is welcome!
Thanks in advance,