Merge pull request #9757 from dualface/fix_framework_on_ios

fix framework on iOS
This commit is contained in:
minggo 2014-12-31 18:04:15 +08:00
commit d7fceb30bd
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ elseif target == cc.PLATFORM_OS_ANDROID then
device.platform = "android"
elseif target == cc.PLATFORM_OS_IPHONE or target == cc.PLATFORM_OS_IPAD then
device.platform = "ios"
local director = cc.Director:getInstance()
local view = director:getOpenGLView()
local framesize = view:getFrameSize()
local w, h = framesize.width, framesize.height
if w == 640 and h == 960 then
device.model = "iphone 4"