From 2e23da4ad5ca7ec50ffcdb0a1f6316cf401c1989 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Sun, 28 Mar 1999 09:18:22 +0000 Subject: [PATCH] Added initialisation of the pixmap_depth field in Xlib_DirectDrawCreate. --- graphics/ddraw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graphics/ddraw.c b/graphics/ddraw.c index 638ff69735e..4b427dbbf0c 100644 --- a/graphics/ddraw.c +++ b/graphics/ddraw.c @@ -4332,7 +4332,10 @@ HRESULT WINAPI Xlib_DirectDrawCreate( LPDIRECTDRAW *lplpDD, LPUNKNOWN pUnkOuter) /* At DirectDraw creation, the depth is the default depth */ depth = DefaultDepthOfScreen(X11DRV_GetXScreen()); - _common_depth_to_pixelformat(depth, &((*ilplpDD)->d.directdraw_pixelformat), &((*ilplpDD)->d.screen_pixelformat), NULL); + _common_depth_to_pixelformat(depth, + &((*ilplpDD)->d.directdraw_pixelformat), + &((*ilplpDD)->d.screen_pixelformat), + &((*ilplpDD)->d.pixmap_depth)); (*ilplpDD)->d.height = MONITOR_GetHeight(&MONITOR_PrimaryMonitor); (*ilplpDD)->d.width = MONITOR_GetWidth(&MONITOR_PrimaryMonitor);