Subversion Repositories freemyipod

Rev

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

Rev 830 Rev 833
Line 24... Line 24...
24
#include "emcoreapp.h"
24
#include "emcoreapp.h"
25
#include "libui.h"
25
#include "libui.h"
26
#include "confirmchooser.h"
26
#include "confirmchooser.h"
27
#include "main.h"
27
#include "main.h"
28
#include "util.h"
28
#include "util.h"
-
 
29
#include "settings.h"
29
 
30
 
30
 
31
 
31
static struct chooser_renderer_list_itemdata confirmchooser_rparams_yes =
32
static struct chooser_renderer_list_itemdata confirmchooser_rparams_yes =
32
{
33
{
33
    .size = LIBUI_POINT(260, 10),
34
    .size = LIBUI_POINT(260, 10),
Line 49... Line 50...
49
static struct chooser_renderer_list_itemdata confirmchooser_rparams_no =
50
static struct chooser_renderer_list_itemdata confirmchooser_rparams_no =
50
{
51
{
51
    .size = LIBUI_POINT(260, 10),
52
    .size = LIBUI_POINT(260, 10),
52
    .fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
53
    .fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
53
    .fill_color = 0xa0000000,
54
    .fill_color = 0xa0000000,
54
    .fill_color_selected = 0x60ffffff,
55
    .fill_color_selected = 0x60000000,
55
    .icon_pos = LIBUI_POINT_NULL,
56
    .icon_pos = LIBUI_POINT_NULL,
56
    .icon = LIBUI_SURFACE_NULL,
57
    .icon = LIBUI_SURFACE_NULL,
57
    .icon_opacity = 0,
58
    .icon_opacity = 0,
58
    .icon_selected = LIBUI_SURFACE_NULL,
59
    .icon_selected = LIBUI_SURFACE_NULL,
59
    .icon_selected_opacity = 0,
60
    .icon_selected_opacity = 0,
Line 209... Line 210...
209
    confirmchooser_rparams.viewport.loc.buf.addr = framebuf;
210
    confirmchooser_rparams.viewport.loc.buf.addr = framebuf;
210
    confirmchooser_rparams.blit_src.loc.buf.addr = framebuf;
211
    confirmchooser_rparams.blit_src.loc.buf.addr = framebuf;
211
    confirmchooser_rparams_yes.render = ui->chooser_renderer_list_show_arrow_right;
212
    confirmchooser_rparams_yes.render = ui->chooser_renderer_list_show_arrow_right;
212
    confirmchooser_rparams_no.render = ui->chooser_renderer_list_show_arrow_left;
213
    confirmchooser_rparams_no.render = ui->chooser_renderer_list_show_arrow_left;
213
}
214
}
-
 
215
 
-
 
216
void confirmchooser_apply_settings()
-
 
217
{
-
 
218
    if (settings.snow) confirmchooser.tickinterval = 50000;
-
 
219
    else confirmchooser.tickinterval = 10000000;
-
 
220
}