From: Vincent P. <vin...@la...> - 2014-01-06 22:05:22
|
Git commit 58a394d7321facfac2d7bbacd67c37b5db396c96 by Vincent PINON, on behalf of Henrikki Almusa. Committed on 11/12/2013 at 19:50. Pushed by vpinon into branch 'master'. fix bug 3197 (screen region capture) M +2 -2 src/recmonitor.cpp http://commits.kde.org/kdenlive/58a394d7321facfac2d7bbacd67c37b5db396c96 diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index d8d2bd2..7289991 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -723,14 +723,14 @@ void RecMonitor::slotRecord() m_captureArgs << "-f" << "x11grab"; if (KdenliveSettings::grab_follow_mouse()) m_captureArgs << "-follow_mouse" << "centered"; if (!KdenliveSettings::grab_hide_frame()) m_captureArgs << "-show_region" << "1"; + captureSize = ":0.0"; if (KdenliveSettings::grab_capture_type() == 0) { // Full screen capture - captureSize = ":0.0"; m_captureArgs << "-s" << QString::number(screenSize.width()) + "x" + QString::number(screenSize.height()); } else { // Region capture m_captureArgs << "-s" << QString::number(KdenliveSettings::grab_width()) + "x" + QString::number(KdenliveSettings::grab_height()); - captureSize = ":" + QString::number(KdenliveSettings::grab_offsetx()) + "." + QString::number(KdenliveSettings::grab_offsetx()); + captureSize.append("+" + QString::number(KdenliveSettings::grab_offsetx()) + "." + QString::number(KdenliveSettings::grab_offsetx())); } // fps m_captureArgs << "-r" << QString::number(KdenliveSettings::grab_fps()); |