Merge pull request #1480 from dumganhar/gles20

Updated the comment of setFrameZoomFactor.
This commit is contained in:
James Chen 2012-10-19 03:01:27 -07:00
commit a6151cd3bf
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ int main(int argc, char **argv)
CCEGLView* eglView = CCEGLView::sharedOpenGLView(); CCEGLView* eglView = CCEGLView::sharedOpenGLView();
eglView->setFrameSize(2048, 1536); eglView->setFrameSize(2048, 1536);
// The resolution of ipad3 is very large. In general, PC's resolution is smaller than it. // The resolution of ipad3 is very large. In general, PC's resolution is smaller than it.
// So we need to invoke 'setFrameZoom'(only valid on desktop(win32, mac, linux)) to make the window smaller. // So we need to invoke 'setFrameZoomFactor'(only valid on desktop(win32, mac, linux)) to make the window smaller.
eglView->setFrameZoomFactor(0.4f); eglView->setFrameZoomFactor(0.4f);
return CCApplication::sharedApplication()->run(); return CCApplication::sharedApplication()->run();
} }

View File

@ -17,7 +17,7 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
CCEGLView* eglView = CCEGLView::sharedOpenGLView(); CCEGLView* eglView = CCEGLView::sharedOpenGLView();
eglView->setFrameSize(2048, 1536); eglView->setFrameSize(2048, 1536);
// The resolution of ipad3 is very large. In general, PC's resolution is smaller than it. // The resolution of ipad3 is very large. In general, PC's resolution is smaller than it.
// So we need to invoke 'setFrameZoom'(only valid on desktop(win32, mac, linux)) to make the window smaller. // So we need to invoke 'setFrameZoomFactor'(only valid on desktop(win32, mac, linux)) to make the window smaller.
eglView->setFrameZoomFactor(0.4f); eglView->setFrameZoomFactor(0.4f);
return CCApplication::sharedApplication()->run(); return CCApplication::sharedApplication()->run();
} }