openframeworks / openframeworks/openFrameworks

ofDrawRectRounded() doesn't draw correctly on Android emulators

Open
#5,692 0 comments 0 reactions 0 assignees View on GitHub

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
screen shot 2017-07-11 at 11 09 03 am

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.