IRCc: use process_information struct from macros.inc.

git-svn-id: svn://kolibrios.org@4669 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-03-21 10:52:46 +00:00
parent a340693591
commit e70fc1aa11
3 changed files with 9 additions and 9 deletions

View File

@ -16,11 +16,11 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and
pusha pusha
mcall 9, thread_info, -1 ; get current window size mcall 9, thread_info, -1 ; get information about this thread
mov eax, dword[thread_info+42] ; window xsize mov eax, [thread_info.box.width] ; window xsize
mov ebx, dword[thread_info+46] ; ysize mov ebx, [thread_info.box.height] ; ysize
mov edx, dword[thread_info+62] ; work area xsize mov edx, [thread_info.client_box.width] ; work area xsize
mov esi, dword[thread_info+66] ; ysize mov esi, [thread_info.client_box.height] ; ysize
sub eax, edx sub eax, edx
sub ebx, esi sub ebx, esi
@ -53,7 +53,7 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and
add edx, 0x33000000 add edx, 0x33000000
mov edi, str_programname mov edi, str_programname
mcall mcall
mcall 12, 2 ;; when do we actually need this?? mcall 12, 2
movsx eax, [thread_info+70] ; skip if window rolled up movsx eax, [thread_info+70] ; skip if window rolled up
test eax, 100b test eax, 100b

BIN
programs/network/ircc/ircc Normal file

Binary file not shown.

View File

@ -582,7 +582,7 @@ param rb 1024
servercommand rb 600 servercommand rb 600
thread_info rb 1024 thread_info process_information
xsize dd ? xsize dd ?
ysize dd ? ysize dd ?
mouse_dd dd ? mouse_dd dd ?