Home | History | Annotate | Download | only in examples

Lines Matching refs:paddedWidth

19   int i,j,k,l,width,height,paddedWidth;
62 paddedWidth = width;
64 paddedWidth+=4-(width&3);
67 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,(bitsPerPixelInFile+7)/8,bytesPerPixel);
81 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*bytesPerPixel*height);
96 /* correct the format to 4 bytes instead of 3 (and pad to paddedWidth) */
100 rfbScreen->frameBuffer[(j*paddedWidth+i)*4+k]=
102 for(i=width*4;i<paddedWidth*4;i++)
103 rfbScreen->frameBuffer[j*paddedWidth*4+i]=0;
114 rfbScreen->frameBuffer[j*paddedWidth+i+7-k]=(l&(1<<k))?0:255;