From 31776f98429956c10fa95897390cb9b458335f22 Mon Sep 17 00:00:00 2001 From: Adi Oanca Date: Sun, 16 May 2004 19:24:18 +0000 Subject: [PATCH] resize support git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7603 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/server/ServerWindow.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/servers/app/server/ServerWindow.cpp b/src/servers/app/server/ServerWindow.cpp index 4fb6449f32..0495395f7a 100644 --- a/src/servers/app/server/ServerWindow.cpp +++ b/src/servers/app/server/ServerWindow.cpp @@ -661,7 +661,7 @@ STRACE(("ServerWindow(%s)::CreateLayerTree()\n", fTitle.String())); fSession->ReadInt32(&childCount); Layer *newLayer; - newLayer = new Layer(frame, name, token, resizeMask, flags, desktop->GetDisplayDriver()); + newLayer = new Layer(frame.OffsetToCopy(0.0, 0.0), name, token, resizeMask, flags, desktop->GetDisplayDriver()); delete name; // there is no way of setting this, other than manual. :-) @@ -1555,6 +1555,14 @@ void ServerWindow::DispatchMessage(int32 code) } case AS_WINDOW_RESIZE: { + float xResizeBy; + float yResizeBy; + + fSession->ReadFloat(&xResizeBy); + fSession->ReadFloat(&yResizeBy); + + fWinBorder->ResizeBy(xResizeBy, yResizeBy); +printf("===> ddd = %f %f", xResizeBy, yResizeBy); // TODO: Implement STRACE(("ServerWindow %s: Message Resize unimplemented\n",fTitle.String())); break;