~ubuntu-branches/ubuntu/hardy/vice/hardy

« back to all changes in this revision

Viewing changes to src/arch/unix/gui/uiide64.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2007-10-07 07:05:46 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071007070546-81yy0twlka7p2t0e
Tags: 1.22-1
* New upstream version (closes: #428280).
* Correct link to HTML documentation in manpage (closes: #409567).
* Fix most packaging mistakes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    if (CHECK_MENUS) {
53
53
        int autosize;
54
54
 
55
 
        resources_get_value("IDE64AutodetectSize", (void *)&autosize);
 
55
        resources_get_int("IDE64AutodetectSize", &autosize);
56
56
 
57
57
        if (autosize)
58
58
            ui_menu_set_sensitive(w, False);
66
66
 
67
67
        vsync_suspend_speed_eval();
68
68
 
69
 
        resources_get_value("IDE64Cylinders", (void *)&cylinders);
 
69
        resources_get_int("IDE64Cylinders", &cylinders);
70
70
 
71
71
        sprintf(input_string, "%d", cylinders);
72
72
 
77
77
        if (button == UI_BUTTON_OK) {
78
78
            i = atoi(input_string);
79
79
            if (cylinders > 0 && cylinders <= 1024 && cylinders != i) {
80
 
                resources_set_value("IDE64Cylinders", (resource_value_t)i);
 
80
                resources_set_int("IDE64Cylinders", i);
81
81
                ui_update_menus();
82
82
            }
83
83
        }
91
91
    if (CHECK_MENUS) {
92
92
        int autosize;
93
93
 
94
 
        resources_get_value("IDE64AutodetectSize", (void *)&autosize);
 
94
        resources_get_int("IDE64AutodetectSize", &autosize);
95
95
 
96
96
        if (autosize)
97
97
            ui_menu_set_sensitive(w, False);
105
105
 
106
106
        vsync_suspend_speed_eval();
107
107
 
108
 
        resources_get_value("IDE64Heads", (void *)&heads);
 
108
        resources_get_int("IDE64Heads", &heads);
109
109
 
110
110
        sprintf(input_string, "%d", heads);
111
111
 
116
116
        if (button == UI_BUTTON_OK) {
117
117
            i = atoi(input_string);
118
118
            if (heads > 0 && heads <= 16 && heads != i) {
119
 
                resources_set_value("IDE64Heads", (resource_value_t)i);
 
119
                resources_set_int("IDE64Heads", i);
120
120
                ui_update_menus();
121
121
            }
122
122
        }
130
130
    if (CHECK_MENUS) {
131
131
        int autosize;
132
132
 
133
 
        resources_get_value("IDE64AutodetectSize", (void *)&autosize);
 
133
        resources_get_int("IDE64AutodetectSize", &autosize);
134
134
 
135
135
        if (autosize)
136
136
            ui_menu_set_sensitive(w, False);
144
144
 
145
145
        vsync_suspend_speed_eval();
146
146
 
147
 
        resources_get_value("IDE64Sectors", (void *)&sectors);
 
147
        resources_get_int("IDE64Sectors", &sectors);
148
148
 
149
149
        sprintf(input_string, "%d", sectors);
150
150
 
155
155
        if (button == UI_BUTTON_OK) {
156
156
            i = atoi(input_string);
157
157
            if (sectors >= 0 && sectors <= 63 && sectors != i) {
158
 
                resources_set_value("IDE64Sectors", (resource_value_t)i);
 
158
                resources_set_int("IDE64Sectors", i);
159
159
                ui_update_menus();
160
160
            }
161
161
        }