summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vnc/screen.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-12-11 16:53:51 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-12-11 16:53:51 +0100
commit6cbc226351d6c47ace019f6d62e7070deb7b4b5a (patch)
tree7c2650b5129296b5bc4571460b384ffab5278510 /sys/src/cmd/vnc/screen.c
parent5cc1cb182065a0c1f5a32e36a71c9b1ac3083db5 (diff)
vncs: update devmouse code
Diffstat (limited to 'sys/src/cmd/vnc/screen.c')
-rw-r--r--sys/src/cmd/vnc/screen.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/sys/src/cmd/vnc/screen.c b/sys/src/cmd/vnc/screen.c
index ce8a7e818..c7ddf9058 100644
--- a/sys/src/cmd/vnc/screen.c
+++ b/sys/src/cmd/vnc/screen.c
@@ -39,20 +39,6 @@ static Memimage *cursorset;
static Memimage *cursorclear;
static Cursor screencursor;
-Cursor arrow = {
- { -1, -1 },
- { 0xFF, 0xFF, 0x80, 0x01, 0x80, 0x02, 0x80, 0x0C,
- 0x80, 0x10, 0x80, 0x10, 0x80, 0x08, 0x80, 0x04,
- 0x80, 0x02, 0x80, 0x01, 0x80, 0x02, 0x8C, 0x04,
- 0x92, 0x08, 0x91, 0x10, 0xA0, 0xA0, 0xC0, 0x40,
- },
- { 0x00, 0x00, 0x7F, 0xFE, 0x7F, 0xFC, 0x7F, 0xF0,
- 0x7F, 0xE0, 0x7F, 0xE0, 0x7F, 0xF0, 0x7F, 0xF8,
- 0x7F, 0xFC, 0x7F, 0xFE, 0x7F, 0xFC, 0x73, 0xF8,
- 0x61, 0xF0, 0x60, 0xE0, 0x40, 0x40, 0x00, 0x00,
- },
-};
-
void
screeninit(int x, int y, char *chanstr)
{
@@ -230,26 +216,16 @@ setcursor(Cursor* curs)
memmove(cursclr, curs->clr, CURSORDIM*CURSORDIM/8);
}
-int
-cursoron(int dolock)
+void
+cursoron(void)
{
- if(dolock)
- lock(&cursor);
cursorpos = mousexy();
- if(dolock)
- unlock(&cursor);
-
- return 0;
}
void
-cursoroff(int dolock)
+cursoroff(void)
{
- if(dolock)
- lock(&cursor);
cursorpos = offscreen;
- if(dolock)
- unlock(&cursor);
}
void