Consolidate mouse position in flip_mouse_cursor

This commit is contained in:
shikhin 2023-03-19 22:51:52 +05:30
parent 6f2d655bd4
commit 45b4f8f3e1
1 changed files with 3 additions and 2 deletions

View File

@ -201,13 +201,14 @@ draw_wallpaper:
flip_mouse_cursor:
pusha
mov bx, [di]
mov al, bh
; Column
xor bh, bh
mov bl, [di]
shl bx, 1
; Row
mov al, [di - mouse_column + mouse_row]
mov cl, COLUMNS*2
mul cl
add bx, ax