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(); } }