diff --git a/samples/HelloCpp/proj.linux/main.cpp b/samples/HelloCpp/proj.linux/main.cpp index 876c63d567..cc5c57f916 100644 --- a/samples/HelloCpp/proj.linux/main.cpp +++ b/samples/HelloCpp/proj.linux/main.cpp @@ -31,7 +31,7 @@ int main(int argc, char **argv) CCEGLView* eglView = CCEGLView::sharedOpenGLView(); eglView->setFrameSize(2048, 1536); // 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); return CCApplication::sharedApplication()->run(); } diff --git a/samples/HelloCpp/proj.win32/main.cpp b/samples/HelloCpp/proj.win32/main.cpp index 42d4978482..f30eb9eff1 100644 --- a/samples/HelloCpp/proj.win32/main.cpp +++ b/samples/HelloCpp/proj.win32/main.cpp @@ -17,7 +17,7 @@ int APIENTRY _tWinMain(HINSTANCE hInstance, CCEGLView* eglView = CCEGLView::sharedOpenGLView(); eglView->setFrameSize(2048, 1536); // 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); return CCApplication::sharedApplication()->run(); }