openframeworks / openframeworks/openFrameworks
ofDrawRectRounded() doesn't draw correctly on Android emulators
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Hi, I found out ofDrawRectRounded() doesn't draw correctly on Android emulators.
Here's the code I used to test.
void ofApp::draw()
{
ofSetColor(255,0,0);
ofRectMode(OF_RECTMODE_CENTER);
ofTranslate(ofGetWidth()/2, ofGetHeight()/2);
ofDrawRectRounded(0, 0, ofGetWidth()/4, ofGetHeight()/4, 20);
}
And this is the result I got

I tested this on 3 different Android emulators and all results were the same.
But when I tested this on the real device, there was no such issue.
In this case, would this be something that I need to worry about?
Does anyone have the same experience?
I'm using Android Studio on Mac OSX 10.11.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
Start with the ofDrawRectRounded() call in the supplied ofApp::draw() example and reproduce it on an Android emulator, comparing it with a real device. Trace the Android rendering path for this function; done means the rounded rectangle renders correctly on supported emulators without regressing device output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100