From 65369afd6de5a9c466e0da10ec3bf098d06c4cb6 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 27 Mar 2005 05:25:59 +0000 Subject: [PATCH] Implement AS_LAYER_COPY_BITS. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12066 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerWindow.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index ee1315070f..69560f9313 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -715,6 +715,21 @@ void ServerWindow::DispatchMessage(int32 code, LinkMsgReader &link) } break; } + case AS_LAYER_COPY_BITS: + { + BRect src; + BRect dest; + + link.Read(&src); + link.Read(&dest); + + src = cl->ConvertToTop(src); + dest = cl->ConvertToTop(dest); + + cl->fDriver->CopyBits(src, dest, cl->fLayerData); + + break; + } case AS_SET_CURRENT_LAYER: { int32 token;