mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1480 from dumganhar/gles20
Updated the comment of setFrameZoomFactor.
This commit is contained in:
commit
a6151cd3bf
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue