Skip to content

Commit

Permalink
Added missing const to GLUT call (STR #1371)
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed Aug 17, 2006
1 parent 9f41ba5 commit ef48f00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
@@ -1,5 +1,6 @@
CHANGES IN FLTK 1.1.8

- Added missing "const" to GLUT call (STR #1371)
- Fixed stray FL_RELEASE events after clicking system
areas on OS X (STR #1376)
- Fl_Tabs::value() is now "const" as described in the
Expand Down
2 changes: 1 addition & 1 deletion FL/glut.H
Expand Up @@ -117,7 +117,7 @@ FL_EXPORT void glutInitWindowSize(int w, int h);

FL_EXPORT void glutMainLoop();

FL_EXPORT int glutCreateWindow(char *title);
FL_EXPORT int glutCreateWindow(const char *title);

FL_EXPORT int glutCreateSubWindow(int win, int x, int y, int width, int height);

Expand Down
2 changes: 1 addition & 1 deletion src/glut_compatability.cxx
Expand Up @@ -220,7 +220,7 @@ void glutInitWindowSize(int w, int h) {
initw = w; inith = h;
}

int glutCreateWindow(char *title) {
int glutCreateWindow(const char *title) {
Fl_Glut_Window *W;
if (initpos) {
W = new Fl_Glut_Window(initx,inity,initw,inith,title);
Expand Down

0 comments on commit ef48f00

Please sign in to comment.