@@ -308,7 +308,7 @@ bool GLViewImpl::initWithRect(const std::string& viewName, Rect rect, float fram
308
308
message.append (_glfwError);
309
309
}
310
310
311
- MessageBox (message.c_str (), " Error launch application" );
311
+ ccMessageBox (message.c_str (), " Error launch application" );
312
312
return false ;
313
313
}
314
314
@@ -357,7 +357,7 @@ bool GLViewImpl::initWithRect(const std::string& viewName, Rect rect, float fram
357
357
sprintf (strComplain,
358
358
" OpenGL 1.5 or higher is required (your version is %s). Please upgrade the driver of your video card." ,
359
359
glVersion);
360
- MessageBox (strComplain, " OpenGL version too old" );
360
+ ccMessageBox (strComplain, " OpenGL version too old" );
361
361
return false ;
362
362
}
363
363
@@ -1026,7 +1026,7 @@ bool GLViewImpl::initGlew()
1026
1026
GLenum GlewInitResult = glewInit ();
1027
1027
if (GLEW_OK != GlewInitResult)
1028
1028
{
1029
- MessageBox ((char *)glewGetErrorString (GlewInitResult), " OpenGL error" );
1029
+ ccMessageBox ((char *)glewGetErrorString (GlewInitResult), " OpenGL error" );
1030
1030
return false ;
1031
1031
}
1032
1032
@@ -1051,7 +1051,7 @@ bool GLViewImpl::initGlew()
1051
1051
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
1052
1052
if (glew_dynamic_binding () == false )
1053
1053
{
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" );
1055
1055
return false ;
1056
1056
}
1057
1057
#endif
0 commit comments