]> source.dussan.org Git - tigervnc.git/commitdiff
Fix encoding group for H.264 choice
authorPierre Ossman <ossman@cendio.se>
Wed, 24 Aug 2022 14:41:52 +0000 (16:41 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 24 Aug 2022 14:41:52 +0000 (16:41 +0200)
It might not be compiled in, so the height needs to be dynamic.

vncviewer/OptionsDialog.cxx

index c56427ef09d22d2611794f7a859a450bd8645d4a..535e436161589cfda8437e32694973560832b825 100644 (file)
@@ -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);