Subversion Repositories freemyipod

Rev

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

Rev 828 Rev 833
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 = 0x60ffffff,
102
        .fill_color_selected = 0x60000000,
103
        .fill_color_active = 0x60003f3f,
103
        .fill_color_active = 0xa0003f3f,
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 = 5,
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 178... Line 178...
178
            .validator = setting_validate,
178
            .validator = setting_validate,
179
            .config.select =
179
            .config.select =
180
            {
180
            {
181
                .options = &settings_fastboot_item_options
181
                .options = &settings_fastboot_item_options
182
            }
182
            }
-
 
183
        },
-
 
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
            }
183
        }
198
        }
184
    }
199
    }
185
};
200
};
186
 
201
 
187
void run_settingchooser(void** firmware, void** app, int* size)
202
void run_settingchooser(void** firmware, void** app, int* size)
Line 202... Line 217...
202
    settingchooser.rendererparams.copy_dest.buf.addr = framebuf;
217
    settingchooser.rendererparams.copy_dest.buf.addr = framebuf;
203
    settingchooser.rendererparams.copy_src.loc.buf.addr = bg;
218
    settingchooser.rendererparams.copy_src.loc.buf.addr = bg;
204
    settingchooser.rendererparams.viewport.loc.buf.addr = framebuf;
219
    settingchooser.rendererparams.viewport.loc.buf.addr = framebuf;
205
    settingchooser.rendererparams.blit_src.loc.buf.addr = framebuf;
220
    settingchooser.rendererparams.blit_src.loc.buf.addr = framebuf;
206
}
221
}
-
 
222
 
-
 
223
void settingchooser_apply_settings()
-
 
224
{
-
 
225
    if (settings.snow) settingchooser.tickinterval = 50000;
-
 
226
    else settingchooser.tickinterval = 10000000;
-
 
227
}