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_win32.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_win32.cxx')
| -rw-r--r-- | src/Fl_win32.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 1945ac886..ff8e9844a 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_win32.cxx,v 1.16 1998/11/08 16:47:44 mike Exp $" +// "$Id: Fl_win32.cxx,v 1.17 1998/11/08 17:02:39 mike Exp $" // // WIN32-specific code for the Fast Light Tool Kit (FLTK). // @@ -227,7 +227,7 @@ static int ms2fltk(int vk, int extended) { } #if USE_COLORMAP -extern HPALETTE fl_select_palette(int gl); // in fl_color_win32.C +extern HPALETTE fl_select_palette(void); // in fl_color_win32.C #endif static Fl_Window* resize_bug_fix; @@ -388,20 +388,17 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar #if USE_COLORMAP case WM_QUERYNEWPALETTE : fl_GetDC(hWnd); - if (fl_select_palette(window->type() == FL_GL_WINDOW)) - InvalidateRect(hWnd, NULL, FALSE); + if (fl_select_palette()) InvalidateRect(hWnd, NULL, FALSE); break; case WM_PALETTECHANGED: fl_GetDC(hWnd); - if ((HWND)wParam != hWnd && - fl_select_palette(window->type() == FL_GL_WINDOW)) - UpdateColors(fl_gc); + if ((HWND)wParam != hWnd && fl_select_palette()) UpdateColors(fl_gc); break; case WM_CREATE : fl_GetDC(hWnd); - fl_select_palette(window->type() == FL_GL_WINDOW); + fl_select_palette(); break; #endif @@ -755,7 +752,7 @@ void Fl_Window::make_current() { // for all drawing calls, so we must select it here before any // code does any drawing... - fl_select_palette(type() == FL_GL_WINDOW); + fl_select_palette(); #endif // USE_COLORMAP current_ = this; @@ -816,5 +813,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl_win32.cxx,v 1.16 1998/11/08 16:47:44 mike Exp $". +// End of "$Id: Fl_win32.cxx,v 1.17 1998/11/08 17:02:39 mike Exp $". // |
