Commit feb87374 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Make GetDeviceCaps16 (hdc, NUMCOLORS) not return -1 for 16 bits programs.

parent 36456e64
......@@ -790,7 +790,10 @@ HDC WINAPI ResetDCW( HDC hdc, const DEVMODEW *devmode )
*/
INT16 WINAPI GetDeviceCaps16( HDC16 hdc, INT16 cap )
{
return GetDeviceCaps( hdc, cap );
INT16 ret = GetDeviceCaps( hdc, cap );
/* some apps don't expect -1 and think it's a B&W screen */
if ((cap == NUMCOLORS) && (ret == -1)) ret = 2048;
return ret;
}
......
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