Revision 4043a013

b/ui/vnc-enc-tight.c
1180 1180
static void rgb_prepare_row(VncState *vs, uint8_t *dst, int x, int y,
1181 1181
                            int count)
1182 1182
{
1183
    if (vs->tight.pixel24)
1184
        rgb_prepare_row24(vs, dst, x, y, count);
1185
    else if (ds_get_bytes_per_pixel(vs->ds) == 4)
1186
        rgb_prepare_row32(vs, dst, x, y, count);
1187
    else
1183
    if (ds_get_bytes_per_pixel(vs->ds) == 4) {
1184
        if (vs->ds->surface->pf.rmax == 0xFF &&
1185
            vs->ds->surface->pf.gmax == 0xFF &&
1186
            vs->ds->surface->pf.bmax == 0xFF) {
1187
            rgb_prepare_row24(vs, dst, x, y, count);
1188
        } else {
1189
            rgb_prepare_row32(vs, dst, x, y, count);
1190
        }
1191
    } else {
1188 1192
        rgb_prepare_row16(vs, dst, x, y, count);
1193
    }
1189 1194
}
1190 1195
#endif /* CONFIG_VNC_JPEG or CONFIG_VNC_PNG */
1191 1196

  

Also available in: Unified diff