From 453ac88dce1d9d35c871ea1dd653be7c7907a675 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 26 May 2016 18:43:11 +0200 Subject: [PATCH] gsdx option: use CaptureWidth/CaptureHeight on linux too --- plugins/GSdx/GSCapture.cpp | 4 ++-- plugins/GSdx/GSLinuxDialog.cpp | 4 ++-- plugins/GSdx/GSdx.cpp | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/plugins/GSdx/GSCapture.cpp b/plugins/GSdx/GSCapture.cpp index c219fdad6e..47da3c4ad4 100644 --- a/plugins/GSdx/GSCapture.cpp +++ b/plugins/GSdx/GSCapture.cpp @@ -488,8 +488,8 @@ bool GSCapture::BeginCapture(float fps, GSVector2i recomendedResolution, float a // Really cheap recording m_frame = 0; // Add option !!! - m_size.x = theApp.GetConfigI("capture_resx"); - m_size.y = theApp.GetConfigI("capture_resy"); + m_size.x = theApp.GetConfigI("CaptureWidth"); + m_size.y = theApp.GetConfigI("CaptureHeight"); for(int i = 0; i < m_threads; i++) { m_workers.push_back(new GSPng::Worker()); diff --git a/plugins/GSdx/GSLinuxDialog.cpp b/plugins/GSdx/GSLinuxDialog.cpp index 78033a4027..a3dec89de2 100644 --- a/plugins/GSdx/GSLinuxDialog.cpp +++ b/plugins/GSdx/GSLinuxDialog.cpp @@ -417,8 +417,8 @@ void populate_record_table(GtkWidget* record_table) { GtkWidget* capture_check = CreateCheckBox("Enable Recording (with F12)", "capture_enabled"); GtkWidget* resxy_label = left_label("Resolution:"); - GtkWidget* resx_spin = CreateSpinButton(256, 8192, "capture_resx"); - GtkWidget* resy_spin = CreateSpinButton(256, 8192, "capture_resy"); + GtkWidget* resx_spin = CreateSpinButton(256, 8192, "CaptureWidth"); + GtkWidget* resy_spin = CreateSpinButton(256, 8192, "CaptureHeight"); GtkWidget* threads_label = left_label("Saving Threads:"); GtkWidget* threads_spin = CreateSpinButton(1, 32, "capture_threads"); GtkWidget* out_dir_label = left_label("Output Directory:"); diff --git a/plugins/GSdx/GSdx.cpp b/plugins/GSdx/GSdx.cpp index 934dc8812d..e3baecd2ee 100644 --- a/plugins/GSdx/GSdx.cpp +++ b/plugins/GSdx/GSdx.cpp @@ -258,10 +258,6 @@ GSdxApp::GSdxApp() m_default_configuration["fba"] = "1"; m_default_configuration["logz"] = "0"; #else - // FIXME use above option - m_default_configuration["capture_resx"] = "1280"; - m_default_configuration["capture_resy"] = "1024"; - // m_default_configuration["linux_replay"] = "1"; #endif