static int send_full_color_rect(VncState *vs, int w, int h)

{

    int stream = 0;

    size_t bytes;



    vnc_write_u8(vs, stream << 4); /* no flushing, no filter */



    if (vs->tight_pixel24) {

        tight_pack24(vs, vs->tight.buffer, w * h, &vs->tight.offset);

        bytes = 3;

    } else {

        bytes = vs->clientds.pf.bytes_per_pixel;

    }



    bytes = tight_compress_data(vs, stream, w * h * bytes,

                                tight_conf[vs->tight_compression].raw_zlib_level,

                                Z_DEFAULT_STRATEGY);



    return (bytes >= 0);

}

static int send_full_color_rect(VncState *vs, int w, int h)

{

    int stream = 0;

    size_t bytes;



    vnc_write_u8(vs, stream << 4); 



    if (vs->tight_pixel24) {

        tight_pack24(vs, vs->tight.buffer, w * h, &vs->tight.offset);

        bytes = 3;

    } else {

        bytes = vs->clientds.pf.bytes_per_pixel;

    }



    bytes = tight_compress_data(vs, stream, w * h * bytes,

                                tight_conf[vs->tight_compression].raw_zlib_level,

                                Z_DEFAULT_STRATEGY);



    return (bytes >= 0);

}

static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2)

{

    int VAR_3 = 0;

    size_t bytes;



    vnc_write_u8(VAR_0, VAR_3 << 4); 



    if (VAR_0->tight_pixel24) {

        tight_pack24(VAR_0, VAR_0->tight.buffer, VAR_1 * VAR_2, &VAR_0->tight.offset);

        bytes = 3;

    } else {

        bytes = VAR_0->clientds.pf.bytes_per_pixel;

    }



    bytes = tight_compress_data(VAR_0, VAR_3, VAR_1 * VAR_2 * bytes,

                                tight_conf[VAR_0->tight_compression].raw_zlib_level,

                                Z_DEFAULT_STRATEGY);



    return (bytes >= 0);

}

static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2)
{ int VAR_3 = 0; size_t bytes; vnc_write_u8(VAR_0, VAR_3 << 4); if (VAR_0->tight_pixel24) { tight_pack24(VAR_0, VAR_0->tight.buffer, VAR_1 * VAR_2, &VAR_0->tight.offset); bytes = 3; } else { bytes = VAR_0->clientds.pf.bytes_per_pixel; } bytes = tight_compress_data(VAR_0, VAR_3, VAR_1 * VAR_2 * bytes,
tight_conf[VAR_0->tight_compression].raw_zlib_level,
Z_DEFAULT_STRATEGY); return (bytes >= 0); }