- movieplayer: fix screenshot function

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-11-08 11:00:48 +01:00
committed by Thilo Graf
parent 1a58294231
commit cf190855c7

View File

@@ -3441,6 +3441,9 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
if (autoshot && (autoshot_done || !g_settings.auto_cover)) if (autoshot && (autoshot_done || !g_settings.auto_cover))
return; return;
#ifndef SCREENSHOT
(void)forcover; // avoid compiler warning
#else
bool cover = autoshot || g_settings.screenshot_cover || forcover; bool cover = autoshot || g_settings.screenshot_cover || forcover;
char ending[(sizeof(int)*2) + 6] = ".jpg"; char ending[(sizeof(int)*2) + 6] = ".jpg";
if (!cover) if (!cover)
@@ -3490,9 +3493,6 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
sc->SetSize(w, h); sc->SetSize(w, h);
} }
} }
#if HAVE_SPARK_HARDWARE
sc->Start("-r 320 -j 75");
#else
sc->Start(); sc->Start();
#endif #endif
if (autoshot) if (autoshot)