fix for 86box
This commit is contained in:
parent
77d2fee6af
commit
16865bb141
2 changed files with 8 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ gui_draw_single_widget:
|
|||
|
||||
GFX MOUSE_HIDE ; On cache la souris AVANT de commencer le dessin du widget
|
||||
|
||||
mov ax, GUI_RAM_SEG
|
||||
mov gs, ax
|
||||
|
||||
mov al, [gs:si + widget.state]
|
||||
cmp al, [gs:si + widget.oldstate]
|
||||
je .done
|
||||
|
|
|
|||
|
|
@ -604,8 +604,12 @@ gui_process_all:
|
|||
; Sortie : AL=1 si Clicked, 0 sinon. Met à jour [gs:si].state
|
||||
gui_update_logic:
|
||||
push ds
|
||||
push gs
|
||||
|
||||
mov ax, BDA_DATA_SEG
|
||||
mov ds, ax
|
||||
mov ax, GUI_RAM_SEG
|
||||
mov gs, ax
|
||||
|
||||
mov al, byte [gs:si + widget.state]
|
||||
cmp al, GUI_STATE_DISABLED
|
||||
|
|
@ -673,6 +677,7 @@ gui_update_logic:
|
|||
xor ax, ax
|
||||
|
||||
.done:
|
||||
pop gs
|
||||
pop ds
|
||||
ret
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue