forked from offtopia/ponydos
Consolidate mouse position in flip_mouse_cursor
This commit is contained in:
parent
6f2d655bd4
commit
45b4f8f3e1
1 changed files with 3 additions and 2 deletions
|
@ -201,13 +201,14 @@ draw_wallpaper:
|
||||||
flip_mouse_cursor:
|
flip_mouse_cursor:
|
||||||
pusha
|
pusha
|
||||||
|
|
||||||
|
mov bx, [di]
|
||||||
|
mov al, bh
|
||||||
|
|
||||||
; Column
|
; Column
|
||||||
xor bh, bh
|
xor bh, bh
|
||||||
mov bl, [di]
|
|
||||||
shl bx, 1
|
shl bx, 1
|
||||||
|
|
||||||
; Row
|
; Row
|
||||||
mov al, [di - mouse_column + mouse_row]
|
|
||||||
mov cl, COLUMNS*2
|
mov cl, COLUMNS*2
|
||||||
mul cl
|
mul cl
|
||||||
add bx, ax
|
add bx, ax
|
||||||
|
|
Loading…
Reference in a new issue