summaryrefslogtreecommitdiff
path: root/sys/src/9/pc64
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-04-10 17:12:51 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-04-10 17:12:51 +0200
commit1fe3143e4c43ce2c74e0cfdd70b1bd556bbb9e1b (patch)
tree1507caffb47917cb57aeb1382dab568eb833dba2 /sys/src/9/pc64
parent7b309d2e280675b6ce39f9b53cef6577e295c4f4 (diff)
kernel: cleanup the software mouse cursor mess
The swcursor used a 32x32 image for saving/restoring screen contents for no reason. Add a doflush argument to swcursorhide(), so that disabling software cursor with a double buffered softscreen is properly hidden. The doflush parameter should be set to 0 in all other cases as swcursordraw() will flushes both (current and previours) locations. Make sure swcursorinit() and swcursorhide() clear the visibility flag, even when gscreen is nil. Remove the cursor locking and just do everything within the drawlock. All cursor functions such as curson(), cursoff() and setcursor() will be called drawlock locked. This also means &cursor can be read. Fix devmouse cursor reads and writes. We now have the global cursor variable that is only modified under the drawlock. So copy under drawlock. Move the pc software cursor implementation into vgasoft driver, so screen.c does not need to handle it as a special case. Remove unused functions such as drawhasclients().
Diffstat (limited to 'sys/src/9/pc64')
-rw-r--r--sys/src/9/pc64/pc643
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/pc64/pc64 b/sys/src/9/pc64/pc64
index ed0cf6d03..6e03dc00e 100644
--- a/sys/src/9/pc64/pc64
+++ b/sys/src/9/pc64/pc64
@@ -23,7 +23,7 @@ dev
bridge netif log
ip arp chandial ip ipv6 ipaux iproute netlog ethermedium nullmedium pktmedium inferno
- draw screen vga vgax swcursor
+ draw screen vga vgax vgasoft
mouse mouse
kbd
vga
@@ -112,6 +112,7 @@ misc
uartisa
uartpci pci
+ vgasoft =cur swcursor
# vga3dfx +cur
# vgaark2000pv +cur
# vgabt485 =cur