Ken Thomases : winemac: Restrict DescribePixelFormat() to displayable pixel formats.

Alexandre Julliard julliard at winehq.org
Thu Sep 12 14:55:21 CDT 2013


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

Author: Ken Thomases <ken at codeweavers.com>
Date:   Wed Sep 11 23:46:06 2013 -0500

winemac: Restrict DescribePixelFormat() to displayable pixel formats.

---

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

diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c
index 7327e12..a3c5d48 100644
--- a/dlls/winemac.drv/opengl.c
+++ b/dlls/winemac.drv/opengl.c
@@ -3307,7 +3307,7 @@ static BOOL create_context(struct wgl_context *context, CGLContextObj share)
  */
 int macdrv_wglDescribePixelFormat(HDC hdc, int fmt, UINT size, PIXELFORMATDESCRIPTOR *descr)
 {
-    int ret = nb_formats;
+    int ret = nb_displayable_formats;
     const pixel_format *pf;
     const struct color_mode *mode;
 




More information about the wine-cvs mailing list