Subversion Repositories Kolibri OS

Rev

Rev 4668 | Rev 4671 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4668 Rev 4669
Line 14... Line 14...
14
 
14
 
Line 15... Line 15...
15
draw_window:    ; Completely redraw the window, recalculate all coordinates and sizes
15
draw_window:    ; Completely redraw the window, recalculate all coordinates and sizes
Line 16... Line 16...
16
 
16
 
17
        pusha
17
        pusha
18
 
18
 
19
        mcall   9, thread_info, -1              ; get current window size
19
        mcall   9, thread_info, -1                      ; get information about this thread
20
        mov     eax, dword[thread_info+42]      ; window xsize
20
        mov     eax, [thread_info.box.width]            ; window xsize
21
        mov     ebx, dword[thread_info+46]      ; ysize
21
        mov     ebx, [thread_info.box.height]           ; ysize
22
        mov     edx, dword[thread_info+62]      ; work area xsize
22
        mov     edx, [thread_info.client_box.width]     ; work area xsize
Line 23... Line 23...
23
        mov     esi, dword[thread_info+66]      ; ysize
23
        mov     esi, [thread_info.client_box.height]    ; ysize
24
        sub     eax, edx
24
        sub     eax, edx
Line 51... Line 51...
51
        mov     ecx, WIN_MIN_Y
51
        mov     ecx, WIN_MIN_Y
52
        mov     edx, [colors.work]
52
        mov     edx, [colors.work]
53
        add     edx, 0x33000000
53
        add     edx, 0x33000000
54
        mov     edi, str_programname
54
        mov     edi, str_programname
55
        mcall
55
        mcall
56
        mcall   12, 2 ;; when do we actually need this??
56
        mcall   12, 2
Line 57... Line 57...
57
		
57
		
58
		movsx	eax, [thread_info+70]			; skip if window rolled up
58
		movsx	eax, [thread_info+70]			; skip if window rolled up
59
		test	eax, 100b
59
		test	eax, 100b