From 62965aa1cd7cd126c7ed505f07430a7194cb3e0f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 24 Aug 2022 16:41:52 +0200 Subject: [PATCH] Fix encoding group for H.264 choice It might not be compiled in, so the height needs to be dynamic. --- vncviewer/OptionsDialog.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.5