remove the comment of enableRetina for mac (#20249)

This commit is contained in:
coulsonwang 2019-10-25 15:39:59 +08:00 committed by minggo
parent b849fce842
commit 6dbbb4cc0a
1 changed files with 10 additions and 13 deletions

View File

@ -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();
}