From: Pierre Ossman Date: Wed, 24 Aug 2022 14:41:52 +0000 (+0200) Subject: Fix encoding group for H.264 choice X-Git-Tag: v1.12.90~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62965aa1cd7cd126c7ed505f07430a7194cb3e0f;p=tigervnc.git Fix encoding group for H.264 choice It might not be compiled in, so the height needs to be dynamic. --- diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx index c56427ef..535e4361 100644 --- a/vncviewer/OptionsDialog.cxx +++ b/vncviewer/OptionsDialog.cxx @@ -469,7 +469,10 @@ void OptionsDialog::createCompressionPage(int tx, int ty, int tw, int th) /* VNC encoding box */ ty += GROUP_LABEL_OFFSET; - height = GROUP_MARGIN * 2 + TIGHT_MARGIN * 4 + RADIO_HEIGHT * 5; + height = GROUP_MARGIN * 2 + TIGHT_MARGIN * 3 + RADIO_HEIGHT * 4; +#ifdef HAVE_H264 + height += TIGHT_MARGIN + RADIO_HEIGHT; +#endif encodingGroup = new Fl_Group(tx, ty, half_width, height, _("Preferred encoding")); encodingGroup->box(FL_ENGRAVED_BOX);