mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +00:00
Added initialisation of the pixmap_depth field in
Xlib_DirectDrawCreate.
This commit is contained in:
parent
8768d7cc99
commit
2e23da4ad5
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue