From bee55d7b66744a24b37fb0659b45ea61a4a2bb5d Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 2 Feb 2014 18:41:04 +0000 Subject: [PATCH] .developing Turtle git-svn-id: svn://ultimatepp.org/upp/trunk@6855 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- rainbow/Turtle/Ctrl.h | 4 ++-- rainbow/Turtle/DrawDragRect.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rainbow/Turtle/Ctrl.h b/rainbow/Turtle/Ctrl.h index c026048bd..a03b55790 100644 --- a/rainbow/Turtle/Ctrl.h +++ b/rainbow/Turtle/Ctrl.h @@ -81,8 +81,6 @@ private: static void Put(const Rect& r); static void Put(const String& s); - static void SyncClient(); - friend void DrawDragRect(Ctrl& q, const Rect& rect1, const Rect& rect2, const Rect& clip, int n, Color color, int type, int animation); friend void DrawDragLine(SystemDraw& w, bool horz, int x, int y, int len, int n, int animation); @@ -94,6 +92,8 @@ private: public: static bool DoKeyFB(dword key, int cnt); + + static void SyncClient(); static String host; static int port; diff --git a/rainbow/Turtle/DrawDragRect.cpp b/rainbow/Turtle/DrawDragRect.cpp index ff89c16c6..f55c60bce 100644 --- a/rainbow/Turtle/DrawDragRect.cpp +++ b/rainbow/Turtle/DrawDragRect.cpp @@ -63,8 +63,8 @@ void DrawDragRect(Ctrl& q, const Rect& rect1, const Rect& rect2, const Rect& cli f.type = type; f.animation = animation; DrawDragRect(*top, f); + Ctrl::SyncClient(); Ctrl::Output(); - top->Sync(); } }