diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-07-26 17:00:47 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-07-26 17:00:47 +0000 |
| commit | 9cbd44224d555eb5d9fbd044676e92924407b57b (patch) | |
| tree | fe82f1d1dbf85e40ea27c82aa154c323efec8a76 /plugins/peopsxgl/gpucfg | |
| parent | be2f9d6ef7c59535773efb10f59793b2d4de9eb3 (diff) | |
| download | pcsxr-9cbd44224d555eb5d9fbd044676e92924407b57b.tar.gz | |
peopsogl1, vertex accuracy.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@69230 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/peopsxgl/gpucfg')
| -rw-r--r-- | plugins/peopsxgl/gpucfg/main.c | 17 | ||||
| -rw-r--r-- | plugins/peopsxgl/gpucfg/peopsxgl.ui | 14 |
2 files changed, 30 insertions, 1 deletions
diff --git a/plugins/peopsxgl/gpucfg/main.c b/plugins/peopsxgl/gpucfg/main.c index 3d7d9d68..67c47e64 100644 --- a/plugins/peopsxgl/gpucfg/main.c +++ b/plugins/peopsxgl/gpucfg/main.c @@ -43,6 +43,7 @@ GtkWidget *window, *chkAntiAlias,
*chkOGLExtensions,
*chkScreenSmoothing,
+ *chkGteAccuracy,
*chkUseGameFixes,
*tblGameFixes,
*chkCfgFix1,
@@ -125,6 +126,7 @@ void on_btnSave_clicked( GtkObject *object, gpointer user_data ) { fprintf( out, "\nScreenSmoothing = %i", gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( chkScreenSmoothing ) ) );
fprintf( out, "\nUseFixes = %i", gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( chkUseGameFixes ) ) );
fprintf( out, "\nCfgFixes = %i", cfgFixes );
+ fprintf( out, "\nGteAccuracy = %i", gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( chkGteAccuracy ) ) );
fclose( out );
}
@@ -163,6 +165,7 @@ void on_btnFast_clicked( GtkObject *object, gpointer user_data ) { gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkAntiAlias ), 0 );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkOGLExtensions ), 1 );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkScreenSmoothing ), 0 );
+ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkGteAccuracy ), 0 );
}
void on_btnBeautiful_clicked( GtkObject *object, gpointer user_data ) {
@@ -194,6 +197,7 @@ void on_btnBeautiful_clicked( GtkObject *object, gpointer user_data ) { gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkAntiAlias ), 0 );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkOGLExtensions ), 1 );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkScreenSmoothing ), 0 );
+ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkGteAccuracy ), 0 );
}
// Callbacks used to toggle the sensitivity of some parts of the GUI
@@ -296,6 +300,7 @@ int main( int argc, char **argv ) { chkAntiAlias = GTK_WIDGET( gtk_builder_get_object( builder, "chkAntiAlias" ) );
chkOGLExtensions = GTK_WIDGET( gtk_builder_get_object( builder, "chkOGLExtensions" ) );
chkScreenSmoothing = GTK_WIDGET( gtk_builder_get_object( builder, "chkScreenSmoothing" ) );
+ chkGteAccuracy = GTK_WIDGET( gtk_builder_get_object( builder, "chkGteAccuracy" ) );
chkUseGameFixes = GTK_WIDGET( gtk_builder_get_object( builder, "chkUseGameFixes" ) );
tblGameFixes = GTK_WIDGET( gtk_builder_get_object( builder, "tblGameFixes" ) );
chkCfgFix1 = GTK_WIDGET( gtk_builder_get_object( builder, "chkCfgFix1" ) );
@@ -667,6 +672,18 @@ int main( int argc, char **argv ) { val = 0;
if ( pB ) {
+ strcpy( t, "\nGteAccuracy" );
+ p = strstr( pB, t );
+ if ( p ) {
+ p = strstr( p, "=" );
+ len = 1;
+ val = atoi( p + len );
+ }
+ }
+ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( chkGteAccuracy ), val );
+
+ val = 0;
+ if ( pB ) {
strcpy( t, "\nUseFixes" );
p = strstr( pB, t );
if ( p ) {
diff --git a/plugins/peopsxgl/gpucfg/peopsxgl.ui b/plugins/peopsxgl/gpucfg/peopsxgl.ui index b96b6485..5d90a1fa 100644 --- a/plugins/peopsxgl/gpucfg/peopsxgl.ui +++ b/plugins/peopsxgl/gpucfg/peopsxgl.ui @@ -8,7 +8,6 @@ <property name="resizable">False</property> <property name="window_position">center</property> <property name="type_hint">normal</property> - <property name="has_separator">False</property> <child internal-child="vbox"> <object class="GtkVBox" id="dialog-vbox3"> <property name="visible">True</property> @@ -718,6 +717,19 @@ <property name="position">6</property> </packing> </child> + <child> + <object class="GtkCheckButton" id="chkGteAccuracy"> + <property name="label" translatable="yes">Gte accuracy</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">7</property> + </packing> + </child> </object> <packing> <property name="position">4</property> |
