[GDI32_WINETEST] Sync everything except dib.c with Wine Staging 3.3. CORE-14434
[reactos.git] / modules / rostests / winetests / gdi32 / dc.c
index 7f9c91a..8abfe53 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "precomp.h"
+#ifndef __REACTOS__
+#define WINVER 0x0501 /* request latest DEVMODE */
+#endif
+#define NONAMELESSSTRUCT
+#define NONAMELESSUNION
+
+#include <assert.h>
+#include <stdio.h>
 
-#include <winspool.h>
+#include "wine/test.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "winuser.h"
+#include "winspool.h"
+#include "winerror.h"
 
 #ifndef LAYOUT_LTR
 #define LAYOUT_LTR 0
@@ -389,6 +401,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,