@@ -308,7 +308,7 @@ bool GLViewImpl::initWithRect(const std::string& viewName, Rect rect, float fram
308308 message.append (_glfwError);
309309 }
310310
311- MessageBox (message.c_str (), " Error launch application" );
311+ ccMessageBox (message.c_str (), " Error launch application" );
312312 return false ;
313313 }
314314
@@ -357,7 +357,7 @@ bool GLViewImpl::initWithRect(const std::string& viewName, Rect rect, float fram
357357 sprintf (strComplain,
358358 " OpenGL 1.5 or higher is required (your version is %s). Please upgrade the driver of your video card." ,
359359 glVersion);
360- MessageBox (strComplain, " OpenGL version too old" );
360+ ccMessageBox (strComplain, " OpenGL version too old" );
361361 return false ;
362362 }
363363
@@ -1026,7 +1026,7 @@ bool GLViewImpl::initGlew()
10261026 GLenum GlewInitResult = glewInit ();
10271027 if (GLEW_OK != GlewInitResult)
10281028 {
1029- MessageBox ((char *)glewGetErrorString (GlewInitResult), " OpenGL error" );
1029+ ccMessageBox ((char *)glewGetErrorString (GlewInitResult), " OpenGL error" );
10301030 return false ;
10311031 }
10321032
@@ -1051,7 +1051,7 @@ bool GLViewImpl::initGlew()
10511051#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
10521052 if (glew_dynamic_binding () == false )
10531053 {
1054- MessageBox (" No OpenGL framebuffer support. Please upgrade the driver of your video card." , " OpenGL error" );
1054+ ccMessageBox (" No OpenGL framebuffer support. Please upgrade the driver of your video card." , " OpenGL error" );
10551055 return false ;
10561056 }
10571057#endif
0 commit comments