diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-08-24 16:41:52 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2022-08-24 16:41:52 +0200 |
commit | 62965aa1cd7cd126c7ed505f07430a7194cb3e0f (patch) | |
tree | 3e549f7a8a253aacb5c5762cc230f2337c6229ea /vncviewer | |
parent | 97f51df7013ac818ec3e3c94b6c07b1300de1acd (diff) | |
download | tigervnc-62965aa1cd7cd126c7ed505f07430a7194cb3e0f.tar.gz tigervnc-62965aa1cd7cd126c7ed505f07430a7194cb3e0f.zip |
Fix encoding group for H.264 choice
It might not be compiled in, so the height needs to be dynamic.
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/OptionsDialog.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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); |