From e70fc1aa11d942ea1def622ba3962d540eba1dee Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Fri, 21 Mar 2014 10:52:46 +0000 Subject: [PATCH] IRCc: use process_information struct from macros.inc. git-svn-id: svn://kolibrios.org@4669 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/ircc/gui.inc | 16 ++++++++-------- programs/network/ircc/ircc | Bin 0 -> 10636 bytes programs/network/ircc/ircc.asm | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 programs/network/ircc/ircc diff --git a/programs/network/ircc/gui.inc b/programs/network/ircc/gui.inc index fd92600425..b3c44c0c0a 100644 --- a/programs/network/ircc/gui.inc +++ b/programs/network/ircc/gui.inc @@ -16,11 +16,11 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and pusha - mcall 9, thread_info, -1 ; get current window size - mov eax, dword[thread_info+42] ; window xsize - mov ebx, dword[thread_info+46] ; ysize - mov edx, dword[thread_info+62] ; work area xsize - mov esi, dword[thread_info+66] ; ysize + mcall 9, thread_info, -1 ; get information about this thread + mov eax, [thread_info.box.width] ; window xsize + mov ebx, [thread_info.box.height] ; ysize + mov edx, [thread_info.client_box.width] ; work area xsize + mov esi, [thread_info.client_box.height] ; ysize sub eax, edx sub ebx, esi @@ -37,7 +37,7 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and .y_ok: mov [ysize], esi add esi, ebx - mcall 67, -1, -1 ; set the new sizes + mcall 67, -1, -1 ; set the new sizes popa @@ -53,7 +53,7 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and add edx, 0x33000000 mov edi, str_programname mcall - mcall 12, 2 ;; when do we actually need this?? + mcall 12, 2 movsx eax, [thread_info+70] ; skip if window rolled up test eax, 100b @@ -156,7 +156,7 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and ; draw tabs call draw_windowtabs - + .exit: popa ret diff --git a/programs/network/ircc/ircc b/programs/network/ircc/ircc new file mode 100644 index 0000000000000000000000000000000000000000..ed0d489bd413754a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J1O7bNr~G)a%<1 z?XC2~I~v`e?ZJ;uJMH+Z0-tS_*zS_!Zz+jvqbN@=Do^K}f#{ZeDM_ z<6HF&4)~AltSxgQr>?a)&2{E-r)4AY45q1Us$8`sm%4X329wxM?8{CZEWX6f%yJmJ s4uF1Fdhlro&q$`iD{=hqX&62%@BdzIWDh`gmZ#CQR3o2H!`!m}261;u1^@s6 literal 0 HcmV?d00001 diff --git a/programs/network/ircc/ircc.asm b/programs/network/ircc/ircc.asm index 6f7ca5188f..9f24f3f264 100644 --- a/programs/network/ircc/ircc.asm +++ b/programs/network/ircc/ircc.asm @@ -582,7 +582,7 @@ param rb 1024 servercommand rb 600 -thread_info rb 1024 +thread_info process_information xsize dd ? ysize dd ? mouse_dd dd ?