Use WINDOW_ID_* when constructing window IDs in shell
This commit is contained in:
parent
22e7af2da6
commit
f726a128ed
1 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ initialize:
|
|||
|
||||
; Create icon for the disk on the desktop
|
||||
mov ax, cs
|
||||
add ax, 0x000
|
||||
add ax, WINDOW_ID_ICON
|
||||
xchg [es:GLOBAL_WINDOW_CHAIN_HEAD], ax
|
||||
mov [windows + WINDOW_ID_ICON*window.size + window.next], ax
|
||||
mov word [windows + WINDOW_ID_ICON*window.size + window.width], 5
|
||||
|
@ -503,7 +503,7 @@ show_file_window:
|
|||
mov es, ax
|
||||
|
||||
mov ax, cs
|
||||
add ax, 0x001
|
||||
add ax, WINDOW_ID_FILE_WINDOW
|
||||
xchg [es:GLOBAL_WINDOW_CHAIN_HEAD], ax
|
||||
mov si, windows + WINDOW_ID_FILE_WINDOW*window.size
|
||||
mov [si + window.next], ax
|
||||
|
@ -522,7 +522,7 @@ show_file_window:
|
|||
|
||||
hide_file_window:
|
||||
mov cx, cs
|
||||
add cx, 0x001
|
||||
add cx, WINDOW_ID_FILE_WINDOW
|
||||
call unhook_window
|
||||
|
||||
mov byte [file_window_visible], 0
|
||||
|
|
Loading…
Reference in a new issue