From e0c20725c8c7b516ed500b570fcf134534efd6b3 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 21 Apr 2011 13:06:37 +0200 Subject: s/USE_OGL/USE_OPENGL This is more explicit about what it does, and not much longer --- client/x11/red_window.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'client/x11/red_window.cpp') diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp index 8af22261..9f4da602 100644 --- a/client/x11/red_window.cpp +++ b/client/x11/red_window.cpp @@ -25,12 +25,12 @@ #include #include -#ifdef USE_OGL +#ifdef USE_OPENGL #include #include #include #include -#endif // USE_OGL +#endif // USE_OPENGL #include #include "red_window.h" @@ -41,10 +41,10 @@ #include "pixels_source_p.h" #include #include "region.h" -#ifdef USE_OGL +#ifdef USE_OPENGL #include "gl_utils.h" #include "red_pixmap_gl.h" -#endif // USE_OGL +#endif // USE_OPENGL #include "x_icon.h" @@ -1066,7 +1066,7 @@ void RedWindow_p::wait_for_unmap() } } -#ifdef USE_OGL +#ifdef USE_OPENGL void RedWindow_p::set_glx(int width, int height) { if (_glcont_copy) { @@ -1086,7 +1086,7 @@ void RedWindow_p::set_glx(int width, int height) GLC_ERROR_TEST_FINISH; } } -#endif // USE_OGL +#endif // USE_OPENGL void RedWindow_p::set_minmax(PixelsSource_p& pix_source) { @@ -1127,9 +1127,9 @@ Cursor RedWindow_p::create_invisible_cursor(Window window) RedWindow_p::RedWindow_p() : _win (None) , _show_pos_valid (false) -#ifdef USE_OGL +#ifdef USE_OPENGL , _glcont_copy (NULL) -#endif // USE_OGL +#endif // USE_OPENGL , _icon (NULL) , _focused (false) , _ignore_foucs (false) @@ -1167,12 +1167,12 @@ void RedWindow_p::destroy(RedWindow& red_window, PixelsSource_p& pix_source) XFreeCursor(x_display, _invisible_cursor); _invisible_cursor = None; XDeleteContext(x_display, window, user_data_context); -#ifdef USE_OGL +#ifdef USE_OPENGL if (_glcont_copy) { glXDestroyContext(x_display, _glcont_copy); _glcont_copy = NULL; } -#endif // USE_OGL +#endif // USE_OPENGL XDestroyWindow(x_display, window); XFreeColormap(x_display, _colormap); XFreeGC(x_display, pix_source.x_drawable.gc); @@ -2075,7 +2075,7 @@ bool RedWindow::get_mouse_anchor_point(SpicePoint& pt) return true; } -#ifdef USE_OGL +#ifdef USE_OPENGL RedGlContext RedWindow::create_context_gl() { if (XPlatform::get_fbconfig()[_screen]) { @@ -2148,7 +2148,7 @@ void RedWindow::set_render_fbo(GLuint fbo) pix_source->x_drawable.rendertype = RENDER_TYPE_FBO; pix_source->x_drawable.fbo = fbo; } -#endif // USE_OGL +#endif // USE_OPENGL int RedWindow::get_screen_num() { -- cgit