[PATCH 0/1] MR5605: winemac.drv: Fix warning in macdrv_get_pixel_formats.
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) ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5605
From: Brendan Shanks <bshanks(a)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; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5605
This merge request was approved by Alexandros Frantzis. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5605
participants (3)
-
Alexandros Frantzis (@afrantzis) -
Brendan Shanks -
Brendan Shanks (@bshanks)