先修改display的代码 106到150行使用下面代码替换
if CONFIG_SCREEN_AUTOSCALE and CONFIG_SCREEN_AUTOSCALE ~="NONE" then
if type(CONFIG_SCREEN_AUTOSCALE_CALLBACK) == "function" then
scaleX, scaleY = CONFIG_SCREEN_AUTOSCALE_CALLBACK(w, h, device.model)
end
if CONFIG_SCREEN_AUTOSCALE == "FILL_ALL" then
-- CONFIG_SCREEN_WIDTH = w
-- CONFIG_SCREEN_HEIGHT = h
scale = 1.0
if cc.bPlugin_ then
glview:setDesignResolutionSize(CONFIG_SCREEN_WIDTH, CONFIG_SCREEN_HEIGHT, cc.ResolutionPolicy.EXACT_FIT)
else
glview:setDesignResolutionSize(CONFIG_SCREEN_WIDTH, CONFIG_SCREEN_HEIGHT, cc.ResolutionPolicy.FILL_ALL)
end
else
if not scaleX or not scaleY then
scaleX, scaleY = w / CONFIG_SCREEN_WIDTH, h / CONFIG_SCREEN_HEIGHT
end
if CONFIG_SCREEN_AUTO