Matteo Bruni : d3d9/tests: Add more tests to test_viewport().

Alexandre Julliard julliard at winehq.org
Fri Apr 27 13:26:03 CDT 2018


Module: wine
Branch: master
Commit: 12016da9e11d97201bfedfe0322c43155fad94f0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=12016da9e11d97201bfedfe0322c43155fad94f0

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Thu Apr 26 23:30:12 2018 +0200

d3d9/tests: Add more tests to test_viewport().

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d9/tests/visual.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index 6609e48..a50cb19 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -13918,7 +13918,12 @@ static void test_viewport(void)
     {
         {{  0,   0,  640,  480}, {  0, 120, 479, 359}, "Viewport (0, 0) - (640, 480)"},
         {{  0,   0,  320,  240}, {  0,  60, 239, 179}, "Viewport (0, 0) - (320, 240)"},
+        {{  0,   0, 1280,  960}, {  0, 240, 639, 479}, "Viewport (0, 0) - (1280, 960)"},
+        {{  0,   0, 2000, 1600}, {  0, 400, 639, 479}, "Viewport (0, 0) - (2000, 1600)"},
         {{100, 100,  640,  480}, {100, 220, 579, 459}, "Viewport (100, 100) - (640, 480)"},
+        {{  0,   0, 8192, 8192}, {-10, -10, -10, -10}, "Viewport (0, 0) - (8192, 8192)"},
+        /* AMD HD 2600 on XP draws nothing visible for this one. */
+        /* {{  0,   0, 8192,  480}, {-10, -10,  -1,  -1}, "(0, 0) - (8192, 480) viewport"}, */
     };
     static const struct vec3 quad[] =
     {




More information about the wine-cvs mailing list