From 8e2643687d4345840c5f0e124a4a23ae5d41575d Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov <dmitry@sloboda.ru> Date: Wed, 27 Sep 2000 22:26:51 +0000 Subject: [PATCH] If window was not resized and not moved, repaint only itself excluding parent. --- windows/winpos.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/windows/winpos.c b/windows/winpos.c index 859a18726ec..35ad25a1228 100644 --- a/windows/winpos.c +++ b/windows/winpos.c @@ -2856,8 +2856,13 @@ Pos: /* ----------------------------------------------------------------------- else { if( (winpos.flags & SWP_AGG_NOPOSCHANGE) != SWP_AGG_NOPOSCHANGE ) + { + /* if window was not resized and not moved try to repaint itself */ + if((winpos.flags & SWP_AGG_NOGEOMETRYCHANGE) == SWP_AGG_NOGEOMETRYCHANGE) + uFlags |= SWP_EX_PAINTSELF; uFlags = SWP_CopyValidBits(wndPtr, &visRgn, &oldWindowRect, &oldClientRect, uFlags); + } else { /* nothing moved, redraw frame if needed */ -- GitLab