Roderick Colenbrander : wgl: Fix a typo in the trace code.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 20 16:08:53 CDT 2007


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

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Sun Aug 19 10:55:09 2007 +0200

wgl: Fix a typo in the trace code.

---

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

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 5eed1ed..455b3d0 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1230,7 +1230,7 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
     }
     else {
         ret = bestFormat+1; /* the return value should be a 1-based index */
-        TRACE("Successfully found a matching mode, returning index: %d %x\n", ret, WineGLPixelFormatList[bestFormat-1].fmt_id);
+        TRACE("Successfully found a matching mode, returning index: %d %x\n", ret, WineGLPixelFormatList[bestFormat].fmt_id);
     }
 
     wine_tsx11_unlock();




More information about the wine-cvs mailing list