how to disable retina image scaling in cocos2d-x framework

怎甘沉沦 提交于 2019-12-12 03:19:36

问题


I'm porting my android game to osx I'm having problems on devices with retina display, the sprites are either unnececary scaled or the sprites offset are scaled and not in place, I'd like to have a possibility to control this by myself.

Is it possible to work in retina mode without scale factor, can I somehow enable usage of a full screen 960x640 and with scale factor still set to 1.0?

Could you please tell me how can I do it?


回答1:


You can disable retinal display in AppDelegate.cpp file. In your didFinishLaunching set RetinaDisplay to false. :) Hope this works



来源:https://stackoverflow.com/questions/9873341/how-to-disable-retina-image-scaling-in-cocos2d-x-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!