Subversion Repositories Kolibri OS

Rev

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

Rev 4621 Rev 4623
Line 80... Line 80...
80
        pop     ebx esi
80
        pop     ebx esi
Line 81... Line 81...
81
 
81
 
Line 82... Line -...
82
        ret
-
 
83
 
-
 
84
 
-
 
85
 
-
 
86
window_is_updated:
-
 
87
 
-
 
88
        mov     edi, [window_print]
-
 
89
        cmp     edi, [window_active]
-
 
90
        je      .skip
-
 
91
        test    [edi + window.flags], FLAG_UPDATED
-
 
92
        jnz     .skip
-
 
93
        or      [edi + window.flags], FLAG_UPDATED
-
 
94
 
-
 
95
; TODO: make some noise
-
 
96
 
-
 
97
        call    draw_windowtabs         ; highlight updated tabs
-
 
98
  .skip:
-
 
99
 
-
 
100
        ret
-
 
101
 
82
        ret
Line 102... Line 83...
102
 
83
 
103
 
84
 
104
window_close:   ; closes the 'print' window
85
window_close:   ; closes the 'print' window
Line 178... Line 159...
178
; open a window with a given name, if it does not exist, create it
159
; open a window with a given name, if it does not exist, create it
179
; This procedure only affects window_print ptr, not window_active!
160
; This procedure only affects window_print ptr, not window_active!
180
;
161
;
181
; IN:   esi = ptr to ASCIIZ windowname
162
; IN:   esi = ptr to ASCIIZ windowname
182
; OUT:  esi = ptr to next parameter
163
; OUT:  esi = ptr to next parameter
-
 
164
;       ebx = window ptr/0 on error
Line 183... Line 165...
183
 
165
 
Line 184... Line 166...
184
window_open:
166
window_open:
185
 
167
 
Line 224... Line 206...
224
        dec     esi
206
        dec     esi
Line 225... Line 207...
225
 
207
 
226
        mov     [window_print], ebx
208
        mov     [window_print], ebx
Line -... Line 209...
-
 
209
        ret
227
        ret
210
 
228
 
211
  .error:
229
  .error:                                               ; TODO: return error?
212
        xor     ebx, ebx