Commit 22135ba5 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

gdi32: Return non-zero VREFRESH value for display devices.

parent 90da210c
......@@ -344,7 +344,7 @@ static INT nulldrv_GetDeviceCaps( PHYSDEV dev, INT cap )
case PHYSICALOFFSETY: return 0;
case SCALINGFACTORX: return 0;
case SCALINGFACTORY: return 0;
case VREFRESH: return 0;
case VREFRESH: return GetDeviceCaps( dev->hdc, TECHNOLOGY ) == DT_RASDISPLAY ? 1 : 0;
case DESKTOPVERTRES: return GetDeviceCaps( dev->hdc, VERTRES );
case DESKTOPHORZRES: return GetDeviceCaps( dev->hdc, HORZRES );
case BLTALIGNMENT: return 0;
......
......@@ -400,6 +400,12 @@ static void test_device_caps( HDC hdc, HDC ref_dc, const char *descr, int scale
case LOGPIXELSY:
hdc_caps *= scale;
break;
case VREFRESH:
if (GetDeviceCaps( hdc, TECHNOLOGY ) == DT_RASDISPLAY)
ok( hdc_caps > 0, "expected a positive value on %s, got %d\n", descr, hdc_caps );
else
ok( hdc_caps == 0, "expected 0 on %s, got %d\n", descr, hdc_caps );
break;
}
ok( abs(hdc_caps - GetDeviceCaps( ref_dc, caps[i] )) <= precision,
......
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