mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Fixed ABI issue with const on glutCreateWindow.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -117,6 +117,7 @@ FL_EXPORT void glutInitWindowSize(int w, int h);
|
|||||||
|
|
||||||
FL_EXPORT void glutMainLoop();
|
FL_EXPORT void glutMainLoop();
|
||||||
|
|
||||||
|
FL_EXPORT int glutCreateWindow(char *title);
|
||||||
FL_EXPORT int glutCreateWindow(const char *title);
|
FL_EXPORT int glutCreateWindow(const char *title);
|
||||||
|
|
||||||
FL_EXPORT int glutCreateSubWindow(int win, int x, int y, int width, int height);
|
FL_EXPORT int glutCreateSubWindow(int win, int x, int y, int width, int height);
|
||||||
|
|||||||
@@ -220,6 +220,10 @@ void glutInitWindowSize(int w, int h) {
|
|||||||
initw = w; inith = h;
|
initw = w; inith = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int glutCreateWindow(char *title) {
|
||||||
|
return glutCreateWindow((const char*)title);
|
||||||
|
}
|
||||||
|
|
||||||
int glutCreateWindow(const char *title) {
|
int glutCreateWindow(const char *title) {
|
||||||
Fl_Glut_Window *W;
|
Fl_Glut_Window *W;
|
||||||
if (initpos) {
|
if (initpos) {
|
||||||
|
|||||||
Reference in New Issue
Block a user