@@ -316,7 +316,7 @@ bool GLViewImpl::initWithRect(const std::string& viewName, Rect rect, float fram
316
316
message.append (_glfwError);
317
317
}
318
318
319
- MessageBox (message.c_str (), " Error launch application" );
319
+ ccMessageBox (message.c_str (), " Error launch application" );
320
320
return false ;
321
321
}
322
322
@@ -367,7 +367,7 @@ bool GLViewImpl::initWithRect(const std::string& viewName, Rect rect, float fram
367
367
sprintf (strComplain,
368
368
" OpenGL 1.5 or higher is required (your version is %s). Please upgrade the driver of your video card." ,
369
369
glVersion);
370
- MessageBox (strComplain, " OpenGL version too old" );
370
+ ccMessageBox (strComplain, " OpenGL version too old" );
371
371
return false ;
372
372
}
373
373
@@ -1012,7 +1012,7 @@ bool GLViewImpl::initGlew()
1012
1012
GLenum GlewInitResult = glewInit ();
1013
1013
if (GLEW_OK != GlewInitResult)
1014
1014
{
1015
- MessageBox ((char *)glewGetErrorString (GlewInitResult), " OpenGL error" );
1015
+ ccMessageBox ((char *)glewGetErrorString (GlewInitResult), " OpenGL error" );
1016
1016
return false ;
1017
1017
}
1018
1018
@@ -1038,7 +1038,7 @@ bool GLViewImpl::initGlew()
1038
1038
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
1039
1039
if (glew_dynamic_binding () == false )
1040
1040
{
1041
- MessageBox (" No OpenGL framebuffer support. Please upgrade the driver of your video card." , " OpenGL error" );
1041
+ ccMessageBox (" No OpenGL framebuffer support. Please upgrade the driver of your video card." , " OpenGL error" );
1042
1042
return false ;
1043
1043
}
1044
1044
#endif // #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
0 commit comments