summaryrefslogtreecommitdiffstats
path: root/example.c
diff options
context:
space:
mode:
authordscho <dscho>2001-09-27 09:01:39 +0000
committerdscho <dscho>2001-09-27 09:01:39 +0000
commitfb53d4812061fd0976398fc2609a5f5b4a2331a6 (patch)
tree56ecef6fd4b51c4c4d4e34a6b055d89fe03959cc /example.c
parent5c3eae92371309d94a5edd4e35caa71a2e481ab9 (diff)
downloadlibtdevnc-fb53d4812061fd0976398fc2609a5f5b4a2331a6.tar.gz
libtdevnc-fb53d4812061fd0976398fc2609a5f5b4a2331a6.zip
docu and cursors in examples.
Diffstat (limited to 'example.c')
-rw-r--r--example.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/example.c b/example.c
index 0da149b..bab1075 100644
--- a/example.c
+++ b/example.c
@@ -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;
}