Subversion Repositories freemyipod

Rev

Rev 838 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 838 Rev 843
Line 102... Line 102...
102
    .itemparams =
102
    .itemparams =
103
    {
103
    {
104
        .size = LIBUI_POINT(164, 10),
104
        .size = LIBUI_POINT(164, 10),
105
        .fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
105
        .fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(164, 10)),
106
        .fill_color = 0xa0000000,
106
        .fill_color = 0xa0000000,
107
        .fill_color_selected = 0x60000000,
107
        .fill_color_selected = 0x60ffffff,
108
        .fill_color_active = 0xa0003f3f,
108
        .fill_color_active = 0x60003f3f,
109
        .icon_pos = LIBUI_POINT_NULL,
109
        .icon_pos = LIBUI_POINT_NULL,
110
        .icon_opacity = 0,
110
        .icon_opacity = 0,
111
        .icon_selected_opacity = 0,
111
        .icon_selected_opacity = 0,
112
        .icon_active_opacity = 0,
112
        .icon_active_opacity = 0,
113
        .text_pos = LIBUI_POINT(1, 1),
113
        .text_pos = LIBUI_POINT(1, 1),
Line 115... Line 115...
115
        .text_color_selected = 0xff7fffff,
115
        .text_color_selected = 0xff7fffff,
116
        .text_color_active = 0xffff7f7f
116
        .text_color_active = 0xffff7f7f
117
    },
117
    },
118
    .returntext = "Return to tools menu",
118
    .returntext = "Return to tools menu",
119
    .tickinterval = 10000000,
119
    .tickinterval = 10000000,
120
    .itemcount = 7,
120
    .itemcount = 6,
121
    .items =
121
    .items =
122
    {
122
    {
123
        {
123
        {
124
            .text = "Initial timeout",
124
            .text = "Initial timeout",
125
            .icon = LIBUI_SURFACE_NULL,
125
            .icon = LIBUI_SURFACE_NULL,
Line 185... Line 185...
185
            {
185
            {
186
                .options = &settings_fastboot_item_options
186
                .options = &settings_fastboot_item_options
187
            }
187
            }
188
        },
188
        },
189
        {
189
        {
190
            .text = "Snow",
-
 
191
            .icon = LIBUI_SURFACE_NULL,
-
 
192
            .icon_selected = LIBUI_SURFACE_NULL,
-
 
193
            .type = SETTINGCHOOSER_TYPE_INTEGER,
-
 
194
            .setting = &settings.snow,
-
 
195
            .validator = setting_validate,
-
 
196
            .config.integer =
-
 
197
            {
-
 
198
                .min = SETTINGS_SNOW_MIN,
-
 
199
                .max = SETTINGS_SNOW_MAX,
-
 
200
                .step = SETTINGS_SNOW_STEP,
-
 
201
                .tostring = NULL
-
 
202
            }
-
 
203
        },
-
 
204
        {
-
 
205
            .text = "Backlight brightness",
190
            .text = "Backlight brightness",
206
            .icon = LIBUI_SURFACE_NULL,
191
            .icon = LIBUI_SURFACE_NULL,
207
            .icon_selected = LIBUI_SURFACE_NULL,
192
            .icon_selected = LIBUI_SURFACE_NULL,
208
            .type = SETTINGCHOOSER_TYPE_INTEGER,
193
            .type = SETTINGCHOOSER_TYPE_INTEGER,
209
            .setting = &settings.brightness,
194
            .setting = &settings.brightness,
Line 240... Line 225...
240
    settingchooser.rendererparams.blit_src.loc.buf.addr = framebuf;
225
    settingchooser.rendererparams.blit_src.loc.buf.addr = framebuf;
241
}
226
}
242
 
227
 
243
void settingchooser_apply_settings()
228
void settingchooser_apply_settings()
244
{
229
{
245
    if (settings.snow) settingchooser.tickinterval = 50000;
-
 
246
    else settingchooser.tickinterval = 10000000;
-
 
247
}
230
}