summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Overlay.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2000-12-06 15:45:13 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2000-12-06 15:45:13 +0000
commitd244d063ffef2b208bc0659909f0cf31feff795a (patch)
treea3fbf0e7166bddc37c6c1ecdd20e75324c38bd8e /src/Fl_Gl_Overlay.cxx
parenta7826cdc80f888fd9d647ce41b590f57098e37fd (diff)
APIENTRY doesn't need to be used for the font pointers in glut.H
APIENTRY should appear between the return type and function name. WIN32 is defined by MSVC++, not _WIN32. Updated the sources to work with both. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Overlay.cxx')
-rw-r--r--src/Fl_Gl_Overlay.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Fl_Gl_Overlay.cxx b/src/Fl_Gl_Overlay.cxx
index 17eb82376..e50721cbc 100644
--- a/src/Fl_Gl_Overlay.cxx
+++ b/src/Fl_Gl_Overlay.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.12 2000/09/15 07:52:51 spitzak Exp $"
+// "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.13 2000/12/06 15:45:12 easysw Exp $"
//
// OpenGL overlay code for the Fast Light Tool Kit (FLTK).
//
@@ -34,7 +34,7 @@
#if HAVE_GL_OVERLAY
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(WIN32)
// Methods on Fl_Gl_Window that create an overlay window. Because
// many programs don't need the overlay, this is seperated into this
@@ -122,7 +122,7 @@ int Fl_Gl_Window::can_do_overlay() {return 0;}
void Fl_Gl_Window::make_overlay() {
if (!overlay) {
#if HAVE_GL_OVERLAY
-#ifdef _WIN32
+#if defined(_WIN32) || defined(WIN32)
HDC hdc = fl_private_dc(this, mode_,&g);
GLXContext context = wglCreateLayerContext(hdc, 1);
if (context) { // we found a usable overlay context
@@ -172,7 +172,7 @@ void Fl_Gl_Window::make_overlay() {
void Fl_Gl_Window::redraw_overlay() {
if (!shown()) return;
make_overlay();
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(WIN32)
if (overlay != this)
((Fl_Gl_Window*)overlay)->redraw();
else
@@ -184,7 +184,7 @@ void Fl_Gl_Window::make_overlay_current() {
make_overlay();
#if HAVE_GL_OVERLAY
if (overlay != this) {
-#ifdef _WIN32
+#if defined(_WIN32) || defined(WIN32)
fl_set_gl_context(this, (GLXContext)overlay);
// if (fl_overlay_depth)
// wglRealizeLayerPalette(Fl_X::i(this)->private_dc, 1, TRUE);
@@ -198,7 +198,7 @@ void Fl_Gl_Window::make_overlay_current() {
void Fl_Gl_Window::hide_overlay() {
#if HAVE_GL_OVERLAY
-#ifdef _WIN32
+#if defined(_WIN32) || defined(WIN32)
// nothing needs to be done? Or should it be erased?
#else
if (overlay && overlay!=this) ((Fl_Gl_Window*)overlay)->hide();
@@ -209,5 +209,5 @@ void Fl_Gl_Window::hide_overlay() {
#endif
//
-// End of "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.12 2000/09/15 07:52:51 spitzak Exp $".
+// End of "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.13 2000/12/06 15:45:12 easysw Exp $".
//