Alexandre Julliard : server: Don' t convert the surface region to screen coordinates.

Alexandre Julliard julliard at winehq.org
Tue Jun 5 17:06:42 CDT 2018


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun  5 17:50:28 2018 +0200

server: Don't convert the surface region to screen coordinates.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 server/window.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/server/window.c b/server/window.c
index 5a415b8..7081209 100644
--- a/server/window.c
+++ b/server/window.c
@@ -2496,13 +2496,10 @@ DECL_HANDLER(get_surface_region)
 
     if ((region = get_surface_region( win )))
     {
-        rectangle_t *data;
-        if (win->parent) map_win_region_to_screen( win->parent, region );
-        data = get_region_data_and_free( region, get_reply_max_size(), &reply->total_size );
+        rectangle_t *data = get_region_data_and_free( region, get_reply_max_size(), &reply->total_size );
         if (data) set_reply_data_ptr( data, reply->total_size );
     }
     reply->visible_rect = win->visible_rect;
-    if (win->parent) client_to_screen_rect( win->parent, &reply->visible_rect );
 }
 
 




More information about the wine-cvs mailing list