diff options
author | dscho <dscho> | 2001-09-27 09:01:39 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-09-27 09:01:39 +0000 |
commit | fb53d4812061fd0976398fc2609a5f5b4a2331a6 (patch) | |
tree | 56ecef6fd4b51c4c4d4e34a6b055d89fe03959cc /example.c | |
parent | 5c3eae92371309d94a5edd4e35caa71a2e481ab9 (diff) | |
download | libtdevnc-fb53d4812061fd0976398fc2609a5f5b4a2331a6.tar.gz libtdevnc-fb53d4812061fd0976398fc2609a5f5b4a2331a6.zip |
docu and cursors in examples.
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 46 |
1 files changed, 23 insertions, 23 deletions
@@ -241,42 +241,42 @@ void MakeRichCursor(rfbScreenInfoPtr rfbScreen) " xxxxxx " " xxxxxxxxxxxxxxxxx " " xxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxxx " + " xxxxx xxxxxxxx xxxxxxxx " " xxxxxxxxxxxxxxxxxxxxxxxxxxx " " xxxxxxxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx " + " xxxxx xxxxxxxxxxx xxxxxxx " + " xxxx xxxxxxxxx xxxxxx " + " xxxxx xxxxxxxxxxx xxxxxxx " " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx " " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx " + " xxxxxxxxxxxx xxxxxxxxxxxxxxx " + " xxxxxxxxxxxxxxxxxxxxxxxxxxxx " " xxxxxxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxxxxxxx " + " xxxxxxxxxxx xxxxxxxxxxxxxx " + " xxxxxxxxxx xxxxxxxxxxxx " + " xxxxxxxxx xxxxxxxxx " + " xxxxxxxxxx xxxxxxxxx " " xxxxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxxx " - " xxxxxxxxxxxxxx " - " xxxxxxxxxxxx " - " xxxxxxxxxxxx " - " xx xxxxxxxxxxx " - " xxx xxxxxxxxxxx " - " xxxx xxxxxxxxxxx " - " xxxxxx xxxxxxxxxxxxx " + " xxxxxxxxxxxxxxxxxxx " + " xxxxxxxxxxxxxxxxxxx " + " xxxxxxxxxxxxxxxxx " + " xxxxxxxxxxxxxxx " + " xxxx xxxxxxxxxxxxx " + " xx x xxxxxxxxxxx " + " xxx xxxxxxxxxxx " + " xxxx xxxxxxxxxxx " + " xxxxxx xxxxxxxxxxxx " " xxxxxxxxxxxxxxxxxxxxxx " " xxxxxxxxxxxxxxxx " " "; - c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,0); - c->xhot = 2; c->yhot = 10; + c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,bitmap); + c->xhot = 16; c->yhot = 24; c->richSource = malloc(w*h*bpp); for(j=0;j<h;j++) { for(i=0;i<w;i++) { - c->richSource[j*w*bpp+i*bpp+0]=0; //i*0xff/w; - c->richSource[j*w*bpp+i*bpp+1]=0; + c->richSource[j*w*bpp+i*bpp+0]=i*0xff/w; + c->richSource[j*w*bpp+i*bpp+1]=(i+j)*0xff/(w+h); c->richSource[j*w*bpp+i*bpp+2]=j*0xff/h; c->richSource[j*w*bpp+i*bpp+3]=0; } |