//
//  FWSettings.m
//  FeasyBeacon
//
//  Created by LIDONG on 14-2-24.
//  Copyright (c) 2014年 LIDONG. All rights reserved.
//

#import "FWSettings.h"


CGRect FWScreenBounds;
CGFloat FWScreenScale;


void FWGlobalIntialize(void) {
    UIScreen *mainScreen = [UIScreen mainScreen];
    
    FWScreenBounds = [mainScreen bounds];
    
    if (FWScreenBounds.size.width > FWScreenBounds.size.height) {
        const CGFloat newHeight = FWScreenBounds.size.width;
        
        FWScreenBounds.size.width = FWScreenBounds.size.height;
        FWScreenBounds.size.height = newHeight;
    }
    FWScreenScale = [mainScreen scale];
}
