openframeworks / openframeworks/openFrameworks

ofImage.draw() lost 1 pixel in IOS retina device

Open
#2,372 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

addon bug iOS prelim-analysis section-2D
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

http://imgur.com/HMQfoJ3

void testApp::draw(){
    ofBackground(255, 0, 0);
    if ( photo.isAllocated() ){
        photo.draw(0, 0, ofGetWidth(), ofGetHeight());
    }
}

this should be fullscreen, but result lost 1 pixel in width.

I test this in iTouch5 - iOS 6.1.3

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

Reproduce the fullscreen draw in testApp::draw() on the reported iTouch5 and iOS 6.1.3 setup, focusing on the call to ofImage.draw(0, 0, ofGetWidth(), ofGetHeight()). Determine why the rendered width loses one pixel; done means the image fills the device width without the reported gap.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios
Domain
computer-graphics, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.