From 1f7da7c52506631c568ab1d2916d54c30691a3a3 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sat, 31 Oct 2009 23:32:32 +0000 Subject: [PATCH] Removed deprecated settings 'Mouse correction factor' (issue 23) git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1128 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- global.h | 5 ----- readini.c | 4 ++-- saveini.c | 4 ++-- struct.h | 2 -- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/global.h b/global.h index a7082cb7..8a2fd8dc 100644 --- a/global.h +++ b/global.h @@ -112,11 +112,6 @@ GFX2_GLOBAL dword Key_ANSI; /// Boolean set to true when the OS/window manager requests the application to close. ie: [X] button GFX2_GLOBAL byte Quit_is_required; -/// Divisor for the mouse coordinates recieved. No target currently needs it, should be left at 1. -GFX2_GLOBAL byte Mouse_fix_factor_X; -/// Divisor for the mouse coordinates recieved. No target currently needs it, should be left at 1. -GFX2_GLOBAL byte Mouse_fix_factor_Y; - /// /// This boolean is true when the current operation allows changing the /// foreground or background color. diff --git a/readini.c b/readini.c index a3cf1e7b..7e1b9ef8 100644 --- a/readini.c +++ b/readini.c @@ -469,13 +469,13 @@ int Load_INI(T_Config * conf) goto Erreur_Retour; if ((values[0]<0) || (values[0]>4)) goto Erreur_ERREUR_INI_CORROMPU; - conf->Mouse_fix_factor_X=Mouse_fix_factor_X=values[0]; + // Deprecated setting, unused if ((return_code=Load_INI_get_values (file,buffer,"Y_correction_factor",1,values))) goto Erreur_Retour; if ((values[0]<0) || (values[0]>4)) goto Erreur_ERREUR_INI_CORROMPU; - conf->Mouse_fix_factor_Y=Mouse_fix_factor_Y=values[0]; + // Deprecated setting, unused if ((return_code=Load_INI_get_values (file,buffer,"Cursor_aspect",1,values))) goto Erreur_Retour; diff --git a/saveini.c b/saveini.c index 39a153b6..543b8124 100644 --- a/saveini.c +++ b/saveini.c @@ -445,11 +445,11 @@ int Save_INI(T_Config * conf) if ((return_code=Save_INI_set_values (Ancien_fichier,Nouveau_fichier,buffer,"Y_sensitivity",1,values,0))) goto Erreur_Retour; - values[0]=conf->Mouse_fix_factor_X; + values[0]=0; if ((return_code=Save_INI_set_values (Ancien_fichier,Nouveau_fichier,buffer,"X_correction_factor",1,values,0))) goto Erreur_Retour; - values[0]=conf->Mouse_fix_factor_Y; + values[0]=0; if ((return_code=Save_INI_set_values (Ancien_fichier,Nouveau_fichier,buffer,"Y_correction_factor",1,values,0))) goto Erreur_Retour; diff --git a/struct.h b/struct.h index 9867b4dc..eac999a2 100644 --- a/struct.h +++ b/struct.h @@ -285,8 +285,6 @@ typedef struct byte Max_undo_pages; ///< Number of steps to memorize for Undo/Redo. byte Mouse_sensitivity_index_x; ///< Mouse sensitivity in X axis byte Mouse_sensitivity_index_y; ///< Mouse sensitivity in Y axis - byte Mouse_fix_factor_X; ///< Mouse correction factor in X axis. - byte Mouse_fix_factor_Y; ///< Mouse correction factor in Y axis. byte Mouse_merge_movement; ///< Number of SDL mouse events that are merged into a single change of mouse coordinates. byte Delay_left_click_on_slider; ///< Delay (in 1/100s) between two activations of a repeatable button when you hold left-click. byte Delay_right_click_on_slider; ///< Delay (in 1/100s) between two activations of a repeatable button when you hold left-click.