From aacb4b75913d4da1bbd8bf0594740a5e29703fba Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Thu, 12 Oct 2006 10:35:04 +0000 Subject: [PATCH] Corrected border drawing code. git-svn-id: svn://kolibrios.org@181 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/window.inc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index 791c7e63bd..403a8f98c3 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -1645,13 +1645,27 @@ endg ; draw negative window frames +uglobal +moving_wnd dd ? +moving_wnd_redrawed db ? +endg drawwindowframes: + mov [moving_wnd], edi test [edi+WDATA.fl_wstate],WSTATE_MAXIMIZED jnz .ret cmp [edi+WDATA.fl_redraw], 0 - jnz .ret + jz @f + xor [moving_wnd_redrawed], 1 + jmp .ret +@@: + cmp [moving_wnd_redrawed], 0 + jz @f + mov [moving_wnd_redrawed], 0 +.ret: + ret +@@: pushad @@ -1718,7 +1732,6 @@ drawwindowframes: pop edi popad -.ret: ret