forked from KolibriOS/kolibrios
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:
parent
a340693591
commit
e70fc1aa11
@ -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
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and
|
|||||||
.y_ok:
|
.y_ok:
|
||||||
mov [ysize], esi
|
mov [ysize], esi
|
||||||
add esi, ebx
|
add esi, ebx
|
||||||
mcall 67, -1, -1 ; set the new sizes
|
mcall 67, -1, -1 ; set the new sizes
|
||||||
|
|
||||||
popa
|
popa
|
||||||
|
|
||||||
@ -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
BIN
programs/network/ircc/ircc
Normal file
Binary file not shown.
@ -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 ?
|
||||||
|
Loading…
Reference in New Issue
Block a user