ofAndroid: ofGetWidth/ofGetHeight are 0,0 in setup()

I’m not sure if this is a bug or intended, but when I try to get ofGetWidth() and/or ofGetHeight() in testApp::setup() 99% of the time they’re (0,0) and occasionally they’re correct. In LogCat after setup is called the resize event is called. I’m using OF version 0074.

  1. Is this intended?
  2. If so, is the windowResized() always called on startup for android?

I’m trying to see where I should put my height/width based position code (normally in setup for iOS). Should I move that to windowResized()?

no this is a bug, it’s already fixed in develop

Ok thanks arturo, I’ll check out develop. :slight_smile: