diff options
author | dscho <dscho> | 2004-12-17 23:02:01 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-12-17 23:02:01 +0000 |
commit | f28038b28aa1e6de498334c089791ad3d6f24328 (patch) | |
tree | 1745caa1681a915868b7f351f17c7df21a89a184 | |
parent | 3a84b0ccc87a023be3ac84fba82895fafade30c1 (diff) | |
download | libvncserver-f28038b28aa1e6de498334c089791ad3d6f24328.zip libvncserver-f28038b28aa1e6de498334c089791ad3d6f24328.tar.gz |
don't mix up width & height!
-rw-r--r-- | libvncserver/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/cursor.c b/libvncserver/cursor.c index 06c9ef2..b9e8096 100644 --- a/libvncserver/cursor.c +++ b/libvncserver/cursor.c @@ -377,7 +377,7 @@ void rfbMakeRichCursorFromXCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr cursor cursor->foreGreen<<format->greenShift|cursor->foreBlue<<format->blueShift; for(j=0;j<cursor->height;j++) - for(i=0,bit=0x80;i<cursor->height;i++,bit=(bit&1)?0x80:bit>>1,cp+=bpp) + for(i=0,bit=0x80;i<cursor->width;i++,bit=(bit&1)?0x80:bit>>1,cp+=bpp) if(cursor->source[j*w+i/8]&bit) memcpy(cp,fore,bpp); else memcpy(cp,back,bpp); } |