From f28038b28aa1e6de498334c089791ad3d6f24328 Mon Sep 17 00:00:00 2001 From: dscho Date: Fri, 17 Dec 2004 23:02:01 +0000 Subject: [PATCH] don't mix up width & height! --- libvncserver/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<greenShift|cursor->foreBlue<blueShift; for(j=0;jheight;j++) - for(i=0,bit=0x80;iheight;i++,bit=(bit&1)?0x80:bit>>1,cp+=bpp) + for(i=0,bit=0x80;iwidth;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); }