Subversion Repositories freemyipod

Rev

Rev 838 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 838 Rev 843
Line 97... Line 97...
97
    .itemparams =
97
    .itemparams =
98
    {
98
    {
99
        .size = LIBUI_POINT(260, 10),
99
        .size = LIBUI_POINT(260, 10),
100
        .fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
100
        .fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
101
        .fill_color = 0xa0000000,
101
        .fill_color = 0xa0000000,
102
        .fill_color_selected = 0x60000000,
102
        .fill_color_selected = 0x60ffffff,
103
        .fill_color_active = 0xa0003f3f,
103
        .fill_color_active = 0x60003f3f,
104
        .icon_pos = LIBUI_POINT_NULL,
104
        .icon_pos = LIBUI_POINT_NULL,
105
        .icon_opacity = 0,
105
        .icon_opacity = 0,
106
        .icon_selected_opacity = 0,
106
        .icon_selected_opacity = 0,
107
        .icon_active_opacity = 0,
107
        .icon_active_opacity = 0,
108
        .text_pos = LIBUI_POINT(1, 1),
108
        .text_pos = LIBUI_POINT(1, 1),
Line 110... Line 110...
110
        .text_color_selected = 0xff7fffff,
110
        .text_color_selected = 0xff7fffff,
111
        .text_color_active = 0xffff7f7f
111
        .text_color_active = 0xffff7f7f
112
    },
112
    },
113
    .returntext = "Return to tools menu",
113
    .returntext = "Return to tools menu",
114
    .tickinterval = 10000000,
114
    .tickinterval = 10000000,
115
    .itemcount = 7,
115
    .itemcount = 6,
116
    .items =
116
    .items =
117
    {
117
    {
118
        {
118
        {
119
            .text = "Initial timeout",
119
            .text = "Initial timeout",
120
            .icon = LIBUI_SURFACE_NULL,
120
            .icon = LIBUI_SURFACE_NULL,
Line 180... Line 180...
180
            {
180
            {
181
                .options = &settings_fastboot_item_options
181
                .options = &settings_fastboot_item_options
182
            }
182
            }
183
        },
183
        },
184
        {
184
        {
185
            .text = "Snow",
-
 
186
            .icon = LIBUI_SURFACE_NULL,
-
 
187
            .icon_selected = LIBUI_SURFACE_NULL,
-
 
188
            .type = SETTINGCHOOSER_TYPE_INTEGER,
-
 
189
            .setting = &settings.snow,
-
 
190
            .validator = setting_validate,
-
 
191
            .config.integer =
-
 
192
            {
-
 
193
                .min = SETTINGS_SNOW_MIN,
-
 
194
                .max = SETTINGS_SNOW_MAX,
-
 
195
                .step = SETTINGS_SNOW_STEP,
-
 
196
                .tostring = NULL
-
 
197
            }
-
 
198
        },
-
 
199
        {
-
 
200
            .text = "Backlight brightness",
185
            .text = "Backlight brightness",
201
            .icon = LIBUI_SURFACE_NULL,
186
            .icon = LIBUI_SURFACE_NULL,
202
            .icon_selected = LIBUI_SURFACE_NULL,
187
            .icon_selected = LIBUI_SURFACE_NULL,
203
            .type = SETTINGCHOOSER_TYPE_INTEGER,
188
            .type = SETTINGCHOOSER_TYPE_INTEGER,
204
            .setting = &settings.brightness,
189
            .setting = &settings.brightness,
Line 235... Line 220...
235
    settingchooser.rendererparams.blit_src.loc.buf.addr = framebuf;
220
    settingchooser.rendererparams.blit_src.loc.buf.addr = framebuf;
236
}
221
}
237
 
222
 
238
void settingchooser_apply_settings()
223
void settingchooser_apply_settings()
239
{
224
{
240
    if (settings.snow) settingchooser.tickinterval = 50000;
-
 
241
    else settingchooser.tickinterval = 10000000;
-
 
242
}
225
}