Fix coming out of resize if mouse is not above the window
This commit is contained in:
parent
f4df788d11
commit
db112ec4b3
1 changed files with 5 additions and 1 deletions
|
@ -186,6 +186,11 @@ paint:
|
|||
mouse:
|
||||
call get_window
|
||||
|
||||
test dl, MOUSE_PRIMARY | MOUSE_SECONDARY
|
||||
jnz .any_buttons_held
|
||||
mov byte [si + window.status], 0
|
||||
.any_buttons_held:
|
||||
|
||||
mov ax, bx
|
||||
|
||||
push cx
|
||||
|
@ -232,7 +237,6 @@ mouse:
|
|||
jmp .inside
|
||||
.not_buttons_held:
|
||||
mov byte [si + window.mouse_released_inside], 1
|
||||
mov byte [si + window.status], 0
|
||||
|
||||
.inside:
|
||||
pop cx
|
||||
|
|
Loading…
Reference in a new issue