openframeworks / openframeworks/openFrameworks
ARM v6: ofGetWidth() and ofGetHeight() with ofSetFullscreen(true) Not Working Correctly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
So I've got a fullscreen project running on the Raspberry Pi. I'm following the objects tutorial from ofBook. If I instance a circle object from the book and set it to "ofGetWidth() / 2" and "ofGetHeight() / 2" it acts as if the application were windows and not in fullscreen. In other words it gets the width and height as if the application were windows. Setting "ofOpenGLSetup()" to "OF_FULLSCREEN" works, or setting the resolution to my exact resolution works.
The odd thing however is if I just draw an ellipse or circle (without being an object) everything works correctly as it should. I will upload code if it's needed.
This is for the 0.9.8 release.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the 0.9.8 behavior on a Raspberry Pi with ofSetFullscreen(true), comparing ofGetWidth() and ofGetHeight() for an object-based circle versus a directly drawn ellipse or circle. Check how ofOpenGLSetup() and the fullscreen resolution affect those values; done means object positioning uses the actual fullscreen dimensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, raspberry-pi
- Domain
- computer-graphics, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100