Chris Robinson : winex11: Remove improper comment and dead code from SetPixelFormat.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 12 07:50:53 CDT 2007


Module: wine
Branch: master
Commit: f0e0e9fb9bb9c77f38aaaf6dbf5ab4c985b74dff
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f0e0e9fb9bb9c77f38aaaf6dbf5ab4c985b74dff

Author: Chris Robinson <chris.kcat at gmail.com>
Date:   Tue Sep 11 14:23:52 2007 -0700

winex11: Remove improper comment and dead code from SetPixelFormat.

---

 dlls/winex11.drv/opengl.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 07d0b84..3dab1b6 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1374,22 +1374,6 @@ BOOL X11DRV_SetPixelFormat(X11DRV_PDEVICE *physDev,
   if (TRACE_ON(opengl)) {
     int gl_test = 0;
 
-    /*
-     * How to test if hdc current drawable is compatible (visual/FBConfig) ?
-     *
-     * in case of root window created HDCs we crash here :(
-     *
-    Drawable drawable =  get_drawable( physDev->hdc );
-    TRACE(" drawable (%p,%p) have :\n", drawable, root_window);
-    pglXQueryDrawable(gdi_display, drawable, GLX_FBCONFIG_ID, (unsigned int*) &value);
-    TRACE(" - FBCONFIG_ID as 0x%x\n", tmp);
-    pglXQueryDrawable(gdi_display, drawable, GLX_VISUAL_ID, (unsigned int*) &value);
-    TRACE(" - VISUAL_ID as 0x%x\n", tmp);
-    pglXQueryDrawable(gdi_display, drawable, GLX_WIDTH, (unsigned int*) &value);
-    TRACE(" - WIDTH as %d\n", tmp);
-    pglXQueryDrawable(gdi_display, drawable, GLX_HEIGHT, (unsigned int*) &value);
-    TRACE(" - HEIGHT as %d\n", tmp);
-    */
     gl_test = pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_FBCONFIG_ID, &value);
     if (gl_test) {
       ERR("Failed to retrieve FBCONFIG_ID from GLXFBConfig, expect problems.\n");




More information about the wine-cvs mailing list