Commit 3020d1b0 authored by Peter Ganten's avatar Peter Ganten Committed by Alexandre Julliard

_common_depth_to_pixelformat() returns -1 and not zero, if a mode is

supported.
parent 5f5fb124
......@@ -215,7 +215,7 @@ static HRESULT WINAPI DGA_IDirectDrawImpl_SetDisplayMode(
TRACE("(%p)->(%ld,%ld,%ld)\n", This, width, height, depth);
/* We hope getting the asked for depth */
if (_common_depth_to_pixelformat(depth,iface)) {
if ( _common_depth_to_pixelformat(depth,iface) != -1 ) {
/* I.e. no visual found or emulated */
ERR("(w=%ld,h=%ld,d=%ld), unsupported depth!\n",width,height,depth);
return DDERR_UNSUPPORTEDMODE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment