Rev 4622 | Rev 4659 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4622 | Rev 4623 | ||
---|---|---|---|
Line 280... | Line 280... | ||
280 | add ebx, 125 shl 16 |
280 | add ebx, 125 shl 16 |
281 | add edi, sizeof.window |
281 | add edi, sizeof.window |
282 | cmp [edi + window.data_ptr], 0 |
282 | cmp [edi + window.data_ptr], 0 |
283 | jne .more_btn |
283 | jne .more_btn |
Line -... | Line 284... | ||
- | 284 | ||
- | 285 | ; Draw the close window button |
|
- | 286 | ||
- | 287 | mov edi, [window_active] |
|
- | 288 | cmp [edi + window.type], WINDOWTYPE_SERVER ; dont let the user close server window |
|
- | 289 | je @f |
|
- | 290 | ||
- | 291 | ; mov eax, 8 |
|
- | 292 | mov ebx, [xsize] |
|
- | 293 | sub ebx, 12 |
|
- | 294 | shl ebx, 16 |
|
- | 295 | mov bx, 12 |
|
- | 296 | mov ecx, 6 shl 16 + 12 |
|
- | 297 | mov edx, WINDOW_BTN_CLOSE |
|
- | 298 | mov esi, 0x00aa0000 ; red ! |
|
- | 299 | mcall |
|
- | 300 | @@: |
|
284 | 301 | ||
Line 285... | Line 302... | ||
285 | ; Draw the windownames onto the buttons |
302 | ; Draw the windownames onto the buttons |
286 | 303 | ||
287 | mov eax, 4 |
304 | mov eax, 4 |
Line 303... | Line 320... | ||
303 | add ebx, 125 shl 16 |
320 | add ebx, 125 shl 16 |
304 | dec esi |
321 | dec esi |
305 | jnz .more |
322 | jnz .more |
306 | .enough: |
323 | .enough: |
Line 307... | Line 324... | ||
307 | 324 | ||
Line 308... | Line -... | ||
308 | ; Draw the close window button |
- | |
309 | - | ||
310 | mov edi, [window_active] |
- | |
Line 311... | Line -... | ||
311 | cmp [edi + window.type], WINDOWTYPE_SERVER ; dont let the user close server window |
- | |
312 | je @f |
- | |
313 | - | ||
314 | mov eax, 8 |
- | |
315 | mov ebx, [xsize] |
- | |
316 | sub ebx, 12 |
- | |
317 | shl ebx, 16 |
- | |
318 | mov bx, 12 |
- | |
319 | mov ecx, 6 shl 16 + 12 |
- | |
320 | mov edx, WINDOW_BTN_CLOSE |
- | |
Line -... | Line 325... | ||
- | 325 | ret |
|
- | 326 | ||
- | 327 | ||
- | 328 | ||
- | 329 | highlight_updated_tabs: |
|
- | 330 | mov eax, 4 |
|
- | 331 | mov ebx, 10 shl 16 + 15 |
|
- | 332 | mov ecx, 0x80aa0000 |
|
- | 333 | mov esi, MAX_WINDOWS |
|
- | 334 | mov edi, windows |
|
- | 335 | .more_: |
|
321 | ; mov esi, [colors.work_button] |
336 | test [edi + window.flags], FLAG_UPDATED |
- | 337 | jz .next |
|
- | 338 | lea edx, [edi + window.name] |
|
- | 339 | mcall |
|
- | 340 | .next: |
|
- | 341 | add edi, sizeof.window ; get ptr to next window |
|
- | 342 | cmp [edi + window.data_ptr], 0 |
|
- | 343 | je .enough_ |
|
Line 322... | Line 344... | ||
322 | mov esi, 0x00aa0000 ; red ! |
344 | add ebx, 125 shl 16 |
323 | mcall |
- | |
324 | - |