Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openframeworks/openFrameworks
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: apexcode/openFrameworks
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 27 files changed
  • 1 contributor

Commits on Apr 21, 2011

  1. Fixed iPhone master and hacked together retina support

    Fixed library project
    =====================
    Added AVFoundationVideoGrabber.h, AVFoundationVideoGrabber.mm, AVFoundationVideoPlayer.h and AVFoundationVideoPlayer.mm
    
    Added missing includes to AVFoundationVideoGrabber
    
    HACK: added empty getPixelsRef() to AVFoundationVideoPlayer.h
    
    Fixed emptyExample
    ==================
    Added touchCancelled
    Removed cppunit.a from project
    Added CoreMedia, CoreVideo, AVFoundation
    
    Fixed advancedGraphicsExample
    =============================
    Added touchCancelled
    
    Hacked retina support
    =====================
    Turn on retina display automatically (http://forum.openframeworks.cc/index.php/topic,5446.msg28593.html#msg28593):
    
    int w = 320, h = 480;
    
        float ver = [[[UIDevice currentDevice] systemVersion] floatValue];
        // Can't detect screen res in pre 3.2 devices, but they are all 320x480 anyway.
        if (ver >= 3.2) {
            UIScreen* mainscr = [UIScreen mainScreen];
            w = mainscr.currentMode.size.width;
            h = mainscr.currentMode.size.height;
        }
    
        if (w == 640){
            iPhoneGetOFWindow()->enableRetinaSupport();
            NSLog(@"Retina Detected.");
        }
    
    Second two changes detailed here -  http://forum.openframeworks.cc/index.php/topic,5446.msg28593.html#msg28593 - to return correct screen size in ofAppiPhoneWindow.mm and set call enableRetinaSupport() automatically in ofxiPhoneAppDelegate.mm:
    
    Second two changes detailed here - #421 - to set viewport correctly.
    
    Added ofiPhoneImage
    ===================
    If you call loadImage("blah.png") will load blah@2x.png in retina mode
    
    Added iphoneRetinaTester to devApps
    ===================================
    neilmendoza committed Apr 21, 2011
    Configuration menu
    Copy the full SHA
    7836d08 View commit details
    Browse the repository at this point in the history
Loading