From f726a128ed16ac5be8dd779941e557dea12c4eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 27 Mar 2023 11:38:37 +0300 Subject: [PATCH] Use WINDOW_ID_* when constructing window IDs in shell --- shell.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell.asm b/shell.asm index ff3f188..ccab412 100644 --- a/shell.asm +++ b/shell.asm @@ -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