From b6da1bcb15d3cdaf8cb90bf99d1647dc5da15651 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 23 May 2016 19:38:23 +0200 Subject: [PATCH] gsdx linux: add the new option checkbox --- plugins/GSdx/GSLinuxDialog.cpp | 3 +++ plugins/GSdx/GSSetting.cpp | 5 +++++ plugins/GSdx/GSSetting.h | 1 + 3 files changed, 9 insertions(+) diff --git a/plugins/GSdx/GSLinuxDialog.cpp b/plugins/GSdx/GSLinuxDialog.cpp index b2998f2673..9d07cd8d4f 100644 --- a/plugins/GSdx/GSLinuxDialog.cpp +++ b/plugins/GSdx/GSLinuxDialog.cpp @@ -235,6 +235,7 @@ void populate_hw_table(GtkWidget* hw_table) GtkWidget* paltex_check = CreateCheckBox("Allow 8 bits textures", "paltex"); GtkWidget* acc_date_check = CreateCheckBox("Accurate Date", "accurate_date", false); + GtkWidget* large_fb_check = CreateCheckBox("Large Framebuffer", "large_framebuffer", true); GtkWidget* acc_bld_label = left_label("Blending Unit Accuracy:"); GtkWidget* acc_bld_combo_box = CreateComboBoxFromVector(theApp.m_gs_acc_blend_level, "accurate_blending_unit", 1); @@ -242,6 +243,7 @@ void populate_hw_table(GtkWidget* hw_table) // Some helper string AddTooltip(paltex_check, IDC_PALTEX); AddTooltip(acc_date_check, IDC_ACCURATE_DATE); + AddTooltip(large_fb_check, IDC_LARGE_FB); AddTooltip(crc_label, crc_combo_box, IDC_CRC_LEVEL); AddTooltip(acc_bld_label, acc_bld_combo_box, IDC_ACCURATE_BLEND_UNIT); AddTooltip(filter_label, filter_combo_box, IDC_FILTER); @@ -249,6 +251,7 @@ void populate_hw_table(GtkWidget* hw_table) s_table_line = 0; InsertWidgetInTable(hw_table , paltex_check , acc_date_check); + InsertWidgetInTable(hw_table , large_fb_check); InsertWidgetInTable(hw_table , fsaa_label , fsaa_combo_box); InsertWidgetInTable(hw_table , filter_label , filter_combo_box); InsertWidgetInTable(hw_table , af_label , af_combo_box); diff --git a/plugins/GSdx/GSSetting.cpp b/plugins/GSdx/GSSetting.cpp index d1352e4f13..f983b786b2 100644 --- a/plugins/GSdx/GSSetting.cpp +++ b/plugins/GSdx/GSSetting.cpp @@ -136,6 +136,11 @@ const char* dialog_message(int ID, bool* updateText) { case IDC_FAST_TC_INV: return "By default, the texture cache handles partial invalidations. Unfortunately it is very costly to compute CPU wise." "\n\nThis hack replaces the partial invalidation with a complete deletion of the texture to reduce the CPU load.\n\nIt helps snowblind engine game."; +#ifdef __linux__ + case IDC_LARGE_FB: + return "Allocate a large framebuffer to be compliant with GS memory (help FMV flickering).\n" + "It increases GPU/memory requirements."; +#endif default: if (updateText) *updateText = false; diff --git a/plugins/GSdx/GSSetting.h b/plugins/GSdx/GSSetting.h index ba47d92810..7fe48aedf4 100644 --- a/plugins/GSdx/GSSetting.h +++ b/plugins/GSdx/GSSetting.h @@ -74,5 +74,6 @@ enum { IDC_MIPMAP, IDC_PRELOAD_GS, IDC_FAST_TC_INV, + IDC_LARGE_FB, }; #endif