From a1366a2fc9967c7a4eb3f3d8f6412bc8ae2c30b0 Mon Sep 17 00:00:00 2001 From: Frater <13979047+saintfrater@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:29:10 +0100 Subject: [PATCH] buiding GUI BDA --- src/common/bda.asm | 5 +++++ src/gui/lib-logic.asm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/bda.asm b/src/common/bda.asm index 68aa575..d9d9b7b 100644 --- a/src/common/bda.asm +++ b/src/common/bda.asm @@ -30,7 +30,9 @@ %define PTR_MOUSE 0x0000 %define PTR_GFX (PTR_MOUSE + mouse_size) +%define PTR_GUI (PTR_GFX + gfx_size) +; ; video related information (compatible with VGA bios) %define BDA_VIDEO_CURR_MODE 0x0049 %define BDA_VIDEO_COLUMNS 0x004A @@ -76,7 +78,10 @@ struc gfx .cur_offset resw 1 ; offset calculé pour le prochain caractère .cur_line_ofs resw 1 ; "interligne" +2000h ou -2000h .cur_shift resb 1 ; x&7 (0..7) +endstruc +struc gui + .wm_active_window_id resb 1 ; ID de la fenêtre active endstruc ; ----------------------------------------------------------------------------------- diff --git a/src/gui/lib-logic.asm b/src/gui/lib-logic.asm index e7494d6..b3ef991 100644 --- a/src/gui/lib-logic.asm +++ b/src/gui/lib-logic.asm @@ -27,7 +27,7 @@ gui_process_all: pop ds ; Récupérer l'ID de la fenêtre active - mov dl, [wm_active_window_id] + mov dl, [PTR_GUI + gui.wm_active_window_id] mov si, 0 ; Pointeur début tableau mov di, GUI_MAX_WIDGETS ; Compteur