summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-08-17 09:05:44 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-08-17 09:05:44 +0000
commitef48f007a1a8463abfccb118a6836718d497eb29 (patch)
tree83734f96a0b6dc4187dc62d9cfc48bf0cd58dfd7
parent9f41ba57ec95c2497282da1c8701baa309c90a18 (diff)
Added missing const to GLUT call (STR #1371)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES1
-rw-r--r--FL/glut.H2
-rw-r--r--src/glut_compatability.cxx2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 89d1a11e1..e2ab68583 100644
--- a/CHANGES
+++ b/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
diff --git a/FL/glut.H b/FL/glut.H
index 336d47a01..8fa9a2f5b 100644
--- a/FL/glut.H
+++ b/FL/glut.H
@@ -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);
diff --git a/src/glut_compatability.cxx b/src/glut_compatability.cxx
index 0a25478b1..71aeb73ba 100644
--- a/src/glut_compatability.cxx
+++ b/src/glut_compatability.cxx
@@ -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);