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:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue