Revision cf76a1ce

b/ui/vnc-enc-tight.c
1536 1536
    uint32_t bg = 0, fg = 0;
1537 1537
    int colors;
1538 1538
    int ret = 0;
1539
#ifdef CONFIG_VNC_JPEG
1539 1540
    bool force_jpeg = false;
1540 1541
    bool allow_jpeg = true;
1542
#endif
1541 1543

  
1542 1544
    vnc_framebuffer_update(vs, x, y, w, h, vs->tight.type);
1543 1545

  
......
1711 1713
        vs->tight.pixel24 = false;
1712 1714
    }
1713 1715

  
1716
#ifdef CONFIG_VNC_JPEG
1714 1717
    if (vs->tight.quality != (uint8_t)-1) {
1715 1718
        double freq = vnc_update_freq(vs, x, y, w, h);
1716 1719

  
......
1718 1721
            return send_rect_simple(vs, x, y, w, h, false);
1719 1722
        }
1720 1723
    }
1724
#endif
1721 1725

  
1722 1726
    if (w * h < VNC_TIGHT_MIN_SPLIT_RECT_SIZE) {
1723 1727
        return send_rect_simple(vs, x, y, w, h, true);

Also available in: Unified diff