outBuf.writeByte(redShift);
outBuf.writeByte(greenShift);
outBuf.writeByte(blueShift);
// Padding
outBuf.writeByte(0);
outBuf.writeByte(0);
outBuf.writeByte(0);
screen.setPixelFormat(bitsPerPixel, depth, bigEndianFlag != RfbConstants.LITTLE_ENDIAN, trueColourFlag == RfbConstants.TRUE_COLOR, redMax, greenMax,
blueMax, redShift, greenShift, blueShift);