Fixing things - Alex
[terminatorX.git] / src / tX_global.c
index d5ae85ddc25441f05e880d9386c29011c9e0a604..de281dab24a8cc87a743bb1aacdff320b837121a 100644 (file)
@@ -43,6 +43,7 @@
 #define TX_XML_RC_VERSION "1.0"
 
 tx_global globals;
+int _store_compress_xml=0;
 
 void get_rc_name(char *buffer)
 {
@@ -72,7 +73,7 @@ void set_global_defaults() {
        strcpy(globals.xinput_device, "");
        globals.xinput_enable=0;
        
-       globals.update_idle=18;
+       globals.update_idle=14;
        globals.update_delay=1;
        
        strcpy(globals.oss_device, "/dev/dsp");
@@ -85,7 +86,7 @@ void set_global_defaults() {
        globals.alsa_period_time=5000;
        globals.alsa_samplerate=44100;
        
-       globals.sense_cycles=12;
+       globals.sense_cycles=80;
        
        globals.mouse_speed=0.8;
        
@@ -130,6 +131,7 @@ void set_global_defaults() {
        
        strcpy(globals.lrdf_path, "/usr/share/ladspa/rdf:/usr/local/share/ladspa/rdf");
        globals.fullscreen_enabled=1;
+       globals.compress_set_files=0;
 }
 
 int load_globals_xml() {
@@ -204,6 +206,7 @@ int load_globals_xml() {
                        restore_string("file_editor", globals.file_editor);
                        restore_string("lrdf_path", globals.lrdf_path);
                        
+                       restore_int("compress_set_files", globals.compress_set_files);
                        restore_int("fullscreen_enabled", globals.fullscreen_enabled);
 
                        if (!elementFound) {
@@ -226,6 +229,8 @@ void store_globals() {
        char device_type[16];
        char indent[]="\t";
        FILE *rc;
+       gzFile rz;
+       _store_compress_xml=0;
        char tmp_xml_buffer[4096];
        
        get_rc_name(rc_name);
@@ -286,6 +291,7 @@ void store_globals() {
                store_string("record_filename", globals.record_filename);
                store_string("file_editor", globals.file_editor);
                store_string("lrdf_path", globals.lrdf_path);
+               store_int("compress_set_files", globals.compress_set_files);
                store_int("fullscreen_enabled", globals.fullscreen_enabled);
                
                fprintf(rc,"</terminatorXrc>\n");
@@ -353,4 +359,3 @@ char *decode_xml(char *dest, const char *src) {
        
        return dest;
 }
-