From 38392b6ca6ab19e3f04e2f2fae21d9c17df72344 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 26 Jan 2016 01:13:24 +0000 Subject: [PATCH] Reduced window redraw on startup. git-svn-id: svn://kolibrios.org@6098 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/ircc/gui.inc | 14 +++++++------- programs/network/ircc/ircc.asm | 5 +---- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/programs/network/ircc/gui.inc b/programs/network/ircc/gui.inc index 5e0755b5db..ffd9ca3ddc 100644 --- a/programs/network/ircc/gui.inc +++ b/programs/network/ircc/gui.inc @@ -45,24 +45,23 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and pusha mcall 12, 1 - xor eax, eax ; draw window - mov ebx, WIN_MIN_X - mov ecx, WIN_MIN_Y + xor eax, eax ; draw window + mov ebx, WIN_MIN_X+10 + mov ecx, WIN_MIN_Y+30 mov edx, [colors.work] add edx, 0x33000000 mov edi, str_programname mcall - mcall 12, 2 - test [thread_info.wnd_state], 100b ; skip if window is rolled up + test [thread_info.wnd_state], 100b ; skip if window is rolled up jne .exit ; calculate available space for textbox and coordinates for scrollbars mov eax, [ysize] - sub eax, TOP_Y + INPUTBOX_HEIGHT - 1 ;;;; + sub eax, TOP_Y + INPUTBOX_HEIGHT - 1 mov [scroll2.y_size], ax mov [scroll1.y_size], ax - sub eax, 4 ;;;; + sub eax, 4 xor edx, edx mov ecx, FONT_HEIGHT div ecx @@ -144,6 +143,7 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and call draw_window_tabs .exit: + mcall 12, 2 popa ret diff --git a/programs/network/ircc/ircc.asm b/programs/network/ircc/ircc.asm index d49186b26d..95dddf599d 100644 --- a/programs/network/ircc/ircc.asm +++ b/programs/network/ircc/ircc.asm @@ -13,7 +13,7 @@ ;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -version equ '0.27' +version equ '0.28' ; connection status STATUS_DISCONNECTED = 0 @@ -216,9 +216,6 @@ START: call cmd_usr_server.now @@: -; Draw window a first time, so we can figure out skin size - call draw_window - redraw: call draw_window