summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Choice.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-09-20 18:45:55 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-09-20 18:45:55 +0000
commit01ceac46e9b4232dff8e2de8b999843bc77c9db2 (patch)
tree85fd940d7d10901b9609e99f91174ddda1c44bb1 /src/Fl_Gl_Choice.cxx
parent182acd8618f636c0352b5cc8a7eaf1c80adc201a (diff)
Pixel format selection change (STR #175)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Choice.cxx')
-rw-r--r--src/Fl_Gl_Choice.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx
index 2719f2ea6..6f587647b 100644
--- a/src/Fl_Gl_Choice.cxx
+++ b/src/Fl_Gl_Choice.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Gl_Choice.cxx,v 1.5.2.7.2.15 2003/07/23 14:38:00 easysw Exp $"
+// "$Id: Fl_Gl_Choice.cxx,v 1.5.2.7.2.16 2003/09/20 18:45:55 easysw Exp $"
//
// OpenGL visual selection code for the Fast Light Tool Kit (FLTK).
//
@@ -181,8 +181,8 @@ Fl_Gl_Choice *Fl_Gl_Choice::find(int m, const int *alistp) {
// offering overlay is better:
if (!(chosen_pfd.bReserved & 15) && (pfd.bReserved & 15)) {}
// otherwise more bit planes is better:
- else if (chosen_pfd.cColorBits < pfd.cColorBits) {}
- else continue;
+ else if (chosen_pfd.cColorBits > pfd.cColorBits) continue;
+ else if (chosen_pfd.cDepthBits > pfd.cDepthBits) continue;
}
pixelformat = i;
chosen_pfd = pfd;
@@ -347,5 +347,5 @@ void fl_delete_gl_context(GLContext context) {
//
-// End of "$Id: Fl_Gl_Choice.cxx,v 1.5.2.7.2.15 2003/07/23 14:38:00 easysw Exp $".
+// End of "$Id: Fl_Gl_Choice.cxx,v 1.5.2.7.2.16 2003/09/20 18:45:55 easysw Exp $".
//