FIX: display argument in hyperion-qt (#1027)

This commit is contained in:
Denrage
2020-10-18 17:18:30 +02:00
committed by GitHub
parent c09061e5d8
commit 02d0ab68f6
2 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ int main(int argc, char ** argv)
// create the option parser and initialize all parameters
Parser parser("Qt interface capture application for Hyperion");
Option & argDisplay = parser.add<Option> ('d', "display", "Set the display to capture [default: %1]","0");
IntOption & argDisplay = parser.add<IntOption> ('d', "display", "Set the display to capture [default: %1]", "0");
IntOption & argFps = parser.add<IntOption> ('f', "framerate", "Capture frame rate [default: %1]", "10", 1, 25);
IntOption & argCropLeft = parser.add<IntOption> (0x0, "crop-left", "Number of pixels to crop from the left of the picture before decimation (overrides --crop-width)");
IntOption & argCropRight = parser.add<IntOption> (0x0, "crop-right", "Number of pixels to crop from the right of the picture before decimation (overrides --crop-width)");
@@ -63,7 +63,7 @@ int main(int argc, char ** argv)
argCropTop.getInt(parser),
argCropBottom.getInt(parser),
argSizeDecimation.getInt(parser),
parser.isSet(argDisplay));
argDisplay.getInt(parser));
if (parser.isSet(argScreenshot))
{