openframeworks / openframeworks/openFrameworks
Ubuntu - ofGetWidth(), ofGetHeight()is not working properly, with rotate screen & OF_FULLSCREEN mode
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
when display setting is rotate to 90 degree clockwise, ofGetWidth(), ofGetHeight() returns wrong information depend on WINDOW_MODE.
with OF_WINDOW mode, works fine but, with OF_FULLSCREEN is not.
for example, 1920x1080 monitor, 90 degree clockwise rotate setting,
- OF_WINDOW mode
- ofGetWidth() : 1080
- ofGetHeight() : 1920
- OF_FULLSCREEN mode
- ofGetWidth() : 1920
- ofGetHEight() : 1080
I tested with Ubuntu 16.04 LTS, openFrameworks 0.9.6.
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
No source file or test is named. Reproduce the issue on Ubuntu with a 90-degree rotated 1920x1080 display, comparing OF_WINDOW and OF_FULLSCREEN, then trace the window-size reporting path; done means ofGetWidth() and ofGetHeight() return the rotated dimensions in both modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux, ubuntu
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100