mirror of https://github.com/axmolengine/axmol.git
remove the comment of enableRetina for mac (#20249)
This commit is contained in:
parent
b849fce842
commit
6dbbb4cc0a
|
@ -446,19 +446,16 @@ void GLViewImpl::pollEvents()
|
|||
|
||||
void GLViewImpl::enableRetina(bool enabled)
|
||||
{
|
||||
//TODO coulsonwang
|
||||
//#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||
// _isRetinaEnabled = enabled;
|
||||
// if (_isRetinaEnabled)
|
||||
// {
|
||||
// _retinaFactor = 1;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// _retinaFactor = 2;
|
||||
// }
|
||||
// updateFrameSize();
|
||||
//#endif
|
||||
_isRetinaEnabled = enabled;
|
||||
if (_isRetinaEnabled)
|
||||
{
|
||||
_retinaFactor = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
_retinaFactor = 2;
|
||||
}
|
||||
updateFrameSize();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue