Getting incorrect screen dimensions at setup

Hi everyone,

I am working with two different screen resolutions (ie. on my laptop and also on a projector), and I simply need to allocate some fbo objects at setup according to the current screen resolution. I’ve run into a problem when the screen resolution changes from that set in the main class. I found out that within setup(), ofGetWidth() and ofGetHeight() are not set dynamically according to the current screen resolution, but hard-coded from the main class via ofSetupOpenGL().

So the basic question is how to get the current screen size at setup when the screen resolution is different from that hard-coded in the main class? Is there not a more elegant way of getting this value than doing an if statement in update()?

Much thanks in advance