Fix a warning introduced with fbf81662ba5b861e52a15c103cfe36a585f718dd:
``` ../dlls/winemac.drv/opengl.c:4605:54: warning: incompatible pointer types passing 'struct wgl_pixel_format *' to parameter of type 'PIXELFORMATDESCRIPTOR *' (aka 'struct tagPIXELFORMATDESCRIPTOR *') [-Wincompatible-pointer-types] describe_pixel_format(&pixel_formats[i], &formats[i]); ^~~~~~~~~~~ ../dlls/winemac.drv/opengl.c:4306:82: note: passing argument to parameter 'descr' here static void describe_pixel_format(const pixel_format *pf, PIXELFORMATDESCRIPTOR *descr) ```
From: Brendan Shanks bshanks@codeweavers.com
--- dlls/winemac.drv/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c index 000ff08b29d..1c0b87d694a 100644 --- a/dlls/winemac.drv/opengl.c +++ b/dlls/winemac.drv/opengl.c @@ -4602,7 +4602,7 @@ static void macdrv_get_pixel_formats(struct wgl_pixel_format *formats, if (formats) { for (i = 0; i < min(max_formats, nb_formats); ++i) - describe_pixel_format(&pixel_formats[i], &formats[i]); + describe_pixel_format(&pixel_formats[i], &formats[i].pfd); } *num_formats = nb_formats; *num_onscreen_formats = nb_displayable_formats;
This merge request was approved by Alexandros Frantzis.