diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-08 17:02:40 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-08 17:02:40 +0000 |
| commit | 2b769f5934e30002d56f29f15fa26b65123ec67d (patch) | |
| tree | 2412dad37e23303d368a2a286fd1b66efed515f7 /src/Fl_Gl_Window.cxx | |
| parent | e278c332b3ea4f99f74dccc3a125cc92acef70e7 (diff) | |
Backed out WIN32 color palette changes for OpenGL - caused too much
flashing...
git-svn-id: file:///fltk/svn/fltk/trunk@76 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
| -rw-r--r-- | src/Fl_Gl_Window.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx index 10c455d63..5c3ac3a69 100644 --- a/src/Fl_Gl_Window.cxx +++ b/src/Fl_Gl_Window.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Gl_Window.cxx,v 1.9 1998/11/08 16:37:19 mike Exp $" +// "$Id: Fl_Gl_Window.cxx,v 1.10 1998/11/08 17:02:39 mike Exp $" // // OpenGL window code for the Fast Light Tool Kit (FLTK). // @@ -149,9 +149,9 @@ void Fl_Gl_Window::make_current() { #endif # if USE_COLORMAP - if (fl_gl_palette) { + if (fl_palette) { fl_GetDC(fl_xid(this)); - SelectPalette(fl_gc, fl_gl_palette, FALSE); + SelectPalette(fl_gc, fl_palette, FALSE); RealizePalette(fl_gc); } # endif // USE_COLORMAP @@ -315,7 +315,6 @@ Fl_Gl_Window::~Fl_Gl_Window() { void Fl_Gl_Window::init() { end(); // we probably don't want any children box(FL_NO_BOX); - type(FL_GL_WINDOW); mode_ = FL_RGB | FL_DEPTH | FL_DOUBLE; alist = 0; context = 0; @@ -329,5 +328,5 @@ void Fl_Gl_Window::draw_overlay() {} #endif // -// End of "$Id: Fl_Gl_Window.cxx,v 1.9 1998/11/08 16:37:19 mike Exp $". +// End of "$Id: Fl_Gl_Window.cxx,v 1.10 1998/11/08 17:02:39 mike Exp $". // |
