| Line 26... |
Line 26... |
| 26 |
#include "toolchooser.h"
|
26 |
#include "toolchooser.h"
|
| 27 |
#include "boot.h"
|
27 |
#include "boot.h"
|
| 28 |
#include "tools.h"
|
28 |
#include "tools.h"
|
| 29 |
#include "main.h"
|
29 |
#include "main.h"
|
| 30 |
#include "util.h"
|
30 |
#include "util.h"
|
| - |
|
31 |
#include "settings.h"
|
| 31 |
#include "settingchooser.h"
|
32 |
#include "settingchooser.h"
|
| 32 |
|
33 |
|
| 33 |
|
34 |
|
| 34 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_mainchooser =
|
35 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_mainchooser =
|
| 35 |
{
|
36 |
{
|
| 36 |
.size = LIBUI_POINT(260, 10),
|
37 |
.size = LIBUI_POINT(260, 10),
|
| 37 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
38 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
| 38 |
.fill_color = 0xa0000000,
|
39 |
.fill_color = 0xa0000000,
|
| 39 |
.fill_color_selected = 0x60ffffff,
|
40 |
.fill_color_selected = 0x60000000,
|
| 40 |
.icon_pos = LIBUI_POINT_NULL,
|
41 |
.icon_pos = LIBUI_POINT_NULL,
|
| 41 |
.icon = LIBUI_SURFACE_NULL,
|
42 |
.icon = LIBUI_SURFACE_NULL,
|
| 42 |
.icon_opacity = 0,
|
43 |
.icon_opacity = 0,
|
| 43 |
.icon_selected = LIBUI_SURFACE_NULL,
|
44 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 44 |
.icon_selected_opacity = 0,
|
45 |
.icon_selected_opacity = 0,
|
| Line 52... |
Line 53... |
| 52 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_umsboot =
|
53 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_umsboot =
|
| 53 |
{
|
54 |
{
|
| 54 |
.size = LIBUI_POINT(260, 10),
|
55 |
.size = LIBUI_POINT(260, 10),
|
| 55 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
56 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
| 56 |
.fill_color = 0xa0000000,
|
57 |
.fill_color = 0xa0000000,
|
| 57 |
.fill_color_selected = 0x60ffffff,
|
58 |
.fill_color_selected = 0x60000000,
|
| 58 |
.icon_pos = LIBUI_POINT_NULL,
|
59 |
.icon_pos = LIBUI_POINT_NULL,
|
| 59 |
.icon = LIBUI_SURFACE_NULL,
|
60 |
.icon = LIBUI_SURFACE_NULL,
|
| 60 |
.icon_opacity = 0,
|
61 |
.icon_opacity = 0,
|
| 61 |
.icon_selected = LIBUI_SURFACE_NULL,
|
62 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 62 |
.icon_selected_opacity = 0,
|
63 |
.icon_selected_opacity = 0,
|
| Line 70... |
Line 71... |
| 70 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_rockbox_fallback =
|
71 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_rockbox_fallback =
|
| 71 |
{
|
72 |
{
|
| 72 |
.size = LIBUI_POINT(260, 10),
|
73 |
.size = LIBUI_POINT(260, 10),
|
| 73 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
74 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
| 74 |
.fill_color = 0xa0000000,
|
75 |
.fill_color = 0xa0000000,
|
| 75 |
.fill_color_selected = 0x60ffffff,
|
76 |
.fill_color_selected = 0x60000000,
|
| 76 |
.icon_pos = LIBUI_POINT_NULL,
|
77 |
.icon_pos = LIBUI_POINT_NULL,
|
| 77 |
.icon = LIBUI_SURFACE_NULL,
|
78 |
.icon = LIBUI_SURFACE_NULL,
|
| 78 |
.icon_opacity = 0,
|
79 |
.icon_opacity = 0,
|
| 79 |
.icon_selected = LIBUI_SURFACE_NULL,
|
80 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 80 |
.icon_selected_opacity = 0,
|
81 |
.icon_selected_opacity = 0,
|
| Line 88... |
Line 89... |
| 88 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_clearcfg =
|
89 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_clearcfg =
|
| 89 |
{
|
90 |
{
|
| 90 |
.size = LIBUI_POINT(260, 10),
|
91 |
.size = LIBUI_POINT(260, 10),
|
| 91 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
92 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
| 92 |
.fill_color = 0xa0000000,
|
93 |
.fill_color = 0xa0000000,
|
| 93 |
.fill_color_selected = 0x60ffffff,
|
94 |
.fill_color_selected = 0x60000000,
|
| 94 |
.icon_pos = LIBUI_POINT_NULL,
|
95 |
.icon_pos = LIBUI_POINT_NULL,
|
| 95 |
.icon = LIBUI_SURFACE_NULL,
|
96 |
.icon = LIBUI_SURFACE_NULL,
|
| 96 |
.icon_opacity = 0,
|
97 |
.icon_opacity = 0,
|
| 97 |
.icon_selected = LIBUI_SURFACE_NULL,
|
98 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 98 |
.icon_selected_opacity = 0,
|
99 |
.icon_selected_opacity = 0,
|
| Line 106... |
Line 107... |
| 106 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_cleardb =
|
107 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_cleardb =
|
| 107 |
{
|
108 |
{
|
| 108 |
.size = LIBUI_POINT(260, 10),
|
109 |
.size = LIBUI_POINT(260, 10),
|
| 109 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
110 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
| 110 |
.fill_color = 0xa0000000,
|
111 |
.fill_color = 0xa0000000,
|
| 111 |
.fill_color_selected = 0x60ffffff,
|
112 |
.fill_color_selected = 0x60000000,
|
| 112 |
.icon_pos = LIBUI_POINT_NULL,
|
113 |
.icon_pos = LIBUI_POINT_NULL,
|
| 113 |
.icon = LIBUI_SURFACE_NULL,
|
114 |
.icon = LIBUI_SURFACE_NULL,
|
| 114 |
.icon_opacity = 0,
|
115 |
.icon_opacity = 0,
|
| 115 |
.icon_selected = LIBUI_SURFACE_NULL,
|
116 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 116 |
.icon_selected_opacity = 0,
|
117 |
.icon_selected_opacity = 0,
|
| Line 124... |
Line 125... |
| 124 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_reformat =
|
125 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_reformat =
|
| 125 |
{
|
126 |
{
|
| 126 |
.size = LIBUI_POINT(260, 10),
|
127 |
.size = LIBUI_POINT(260, 10),
|
| 127 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
128 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
| 128 |
.fill_color = 0xa0000000,
|
129 |
.fill_color = 0xa0000000,
|
| 129 |
.fill_color_selected = 0x60ffffff,
|
130 |
.fill_color_selected = 0x60000000,
|
| 130 |
.icon_pos = LIBUI_POINT_NULL,
|
131 |
.icon_pos = LIBUI_POINT_NULL,
|
| 131 |
.icon = LIBUI_SURFACE_NULL,
|
132 |
.icon = LIBUI_SURFACE_NULL,
|
| 132 |
.icon_opacity = 0,
|
133 |
.icon_opacity = 0,
|
| 133 |
.icon_selected = LIBUI_SURFACE_NULL,
|
134 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 134 |
.icon_selected_opacity = 0,
|
135 |
.icon_selected_opacity = 0,
|
| Line 142... |
Line 143... |
| 142 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_settingchooser =
|
143 |
static struct chooser_renderer_list_itemdata toolchooser_rparams_settingchooser =
|
| 143 |
{
|
144 |
{
|
| 144 |
.size = LIBUI_POINT(260, 10),
|
145 |
.size = LIBUI_POINT(260, 10),
|
| 145 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
146 |
.fill_box = LIBUI_BOX(LIBUI_POINT(0, 0), LIBUI_POINT(260, 10)),
|
| 146 |
.fill_color = 0xa0000000,
|
147 |
.fill_color = 0xa0000000,
|
| 147 |
.fill_color_selected = 0x60ffffff,
|
148 |
.fill_color_selected = 0x60000000,
|
| 148 |
.icon_pos = LIBUI_POINT_NULL,
|
149 |
.icon_pos = LIBUI_POINT_NULL,
|
| 149 |
.icon = LIBUI_SURFACE_NULL,
|
150 |
.icon = LIBUI_SURFACE_NULL,
|
| 150 |
.icon_opacity = 0,
|
151 |
.icon_opacity = 0,
|
| 151 |
.icon_selected = LIBUI_SURFACE_NULL,
|
152 |
.icon_selected = LIBUI_SURFACE_NULL,
|
| 152 |
.icon_selected_opacity = 0,
|
153 |
.icon_selected_opacity = 0,
|
| Line 269... |
Line 270... |
| 269 |
toolchooser_rparams.viewport.loc.buf.addr = framebuf;
|
270 |
toolchooser_rparams.viewport.loc.buf.addr = framebuf;
|
| 270 |
toolchooser_rparams.blit_src.loc.buf.addr = framebuf;
|
271 |
toolchooser_rparams.blit_src.loc.buf.addr = framebuf;
|
| 271 |
toolchooser_rparams_mainchooser.render = ui->chooser_renderer_list_show_arrow_left;
|
272 |
toolchooser_rparams_mainchooser.render = ui->chooser_renderer_list_show_arrow_left;
|
| 272 |
toolchooser_rparams_settingchooser.render = ui->chooser_renderer_list_show_arrow_right;
|
273 |
toolchooser_rparams_settingchooser.render = ui->chooser_renderer_list_show_arrow_right;
|
| 273 |
}
|
274 |
}
|
| - |
|
275 |
|
| - |
|
276 |
void toolchooser_apply_settings()
|
| - |
|
277 |
{
|
| - |
|
278 |
if (settings.snow) toolchooser.tickinterval = 50000;
|
| - |
|
279 |
else toolchooser.tickinterval = 10000000;
|
| - |
|
280 |
}
|