summaryrefslogtreecommitdiffstats
path: root/client/windows/red_pixmap_sw.cpp
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-21 13:06:37 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-05-03 14:44:11 +0200
commite0c20725c8c7b516ed500b570fcf134534efd6b3 (patch)
treeca604891742f134e4d30390c97a3714e410fde8f /client/windows/red_pixmap_sw.cpp
parentc1b7ecac3f51a2818bf7abd00d27f0475b507ba1 (diff)
downloadspice-e0c20725c8c7b516ed500b570fcf134534efd6b3.tar.gz
spice-e0c20725c8c7b516ed500b570fcf134534efd6b3.tar.xz
spice-e0c20725c8c7b516ed500b570fcf134534efd6b3.zip
s/USE_OGL/USE_OPENGL
This is more explicit about what it does, and not much longer
Diffstat (limited to 'client/windows/red_pixmap_sw.cpp')
-rw-r--r--client/windows/red_pixmap_sw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/windows/red_pixmap_sw.cpp b/client/windows/red_pixmap_sw.cpp
index a72d8704..991b6735 100644
--- a/client/windows/red_pixmap_sw.cpp
+++ b/client/windows/red_pixmap_sw.cpp
@@ -52,7 +52,7 @@ RedPixmapSw::RedPixmapSw(int width, int height, RedDrawable::Format format,
bitmap_info.inf.bmiHeader.biWidth = _width;
bitmap_info.inf.bmiHeader.biHeight = top_bottom ? -_height : _height;
-/*#ifdef USE_OGL
+/*#ifdef USE_OPENGL
// -----------------------------------------------------------------------------
// ensure valid access to additional stride.
// apparently glReadPixels validate ((ptr of last line) + GL_PACK_ROW_LENGTH + 1).
@@ -98,7 +98,7 @@ RedPixmapSw::RedPixmapSw(int width, int height, RedDrawable::Format format,
if (!bitmap.valid()) {
THROW("create compatible bitmap failed");
}
-/*#ifdef USE_OGL
+/*#ifdef USE_OPENGL
SetWindowOrgEx(dc.get(), 0, -1, NULL); // compensate for one pad line
#endif*/
((RedPixmap_p*)get_opaque())->prev_bitmap = (HBITMAP)SelectObject(dc.get(), bitmap.release());