Ralf Habacker : gdi32: Fixed Rectangle() rotation with GM_ADVANCED graphics mode in dib driver.

Alexandre Julliard julliard at winehq.org
Fri Sep 6 12:39:51 CDT 2013


Module: wine
Branch: master
Commit: 39629a3d35f1bf4453733f70685110208c4f778c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=39629a3d35f1bf4453733f70685110208c4f778c

Author: Ralf Habacker <ralf.habacker at freenet.de>
Date:   Fri Aug 30 12:39:12 2013 +0200

gdi32: Fixed Rectangle() rotation with GM_ADVANCED graphics mode in dib driver.

---

 dlls/gdi32/dibdrv/graphics.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/dibdrv/graphics.c b/dlls/gdi32/dibdrv/graphics.c
index d91ef11..f3aaeb6 100644
--- a/dlls/gdi32/dibdrv/graphics.c
+++ b/dlls/gdi32/dibdrv/graphics.c
@@ -1285,6 +1285,15 @@ BOOL dibdrv_Rectangle( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
 
     TRACE("(%p, %d, %d, %d, %d)\n", dev, left, top, right, bottom);
 
+    if (GetGraphicsMode( dev->hdc ) == GM_ADVANCED)
+    {
+        pts[0].x = pts[3].x = left;
+        pts[0].y = pts[1].y = top;
+        pts[1].x = pts[2].x = right;
+        pts[2].y = pts[3].y = bottom;
+        return dibdrv_Polygon( dev, pts, 4 );
+    }
+
     if (!get_pen_device_rect( pdev, &rect, left, top, right, bottom )) return TRUE;
 
     if (pdev->pen_uses_region && !(outline = CreateRectRgn( 0, 0, 0, 0 ))) return FALSE;




More information about the wine-cvs mailing list