diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 51 |
1 files changed, 43 insertions, 8 deletions
@@ -129,14 +129,49 @@ render_sequencer(void) { | |||
129 | 129 | ||
130 | void | 130 | void |
131 | render_settings(void) { | 131 | render_settings(void) { |
132 | txt_drawf_small("settings", 11, 5, COL_FG) | 132 | size_t x0 = 8; |
133 | txt_printf("\n\n\n"); | 133 | size_t x1 = x0 + 64; |
134 | txt_printf(" SYNC: %s\n\n", sync_setting_str[settings.sync]); | 134 | size_t y0 = 6; |
135 | txt_printf(" THEME: %s\n\n", theme_setting_str[settings.theme]); | 135 | |
136 | txt_printf(" CURSOR: %s\n\n", cursor_setting_str[settings.cursor]); | 136 | // Header. |
137 | txt_printf(" HELP: %s\n\n", help_setting_str[settings.help]); | 137 | txt_drawf("SETTINGS", x0, y0, COL_FG) |
138 | txt_render(); | 138 | draw_wrench(SCREEN_WIDTH - 32, y0, COL_FG); |
139 | txt_clear(); | 139 | y0 = 16; |
140 | draw_filled_rect(x0, y0 - 1, SCREEN_WIDTH - 9, y0, COL_FG); | ||
141 | y0 = 20; | ||
142 | |||
143 | // Globals. | ||
144 | txt_drawf("GLOBAL", x0, y0, COL_FG); | ||
145 | draw_line(x0, y0 + 9, SCREEN_WIDTH - 9, y0 + 9, COL_FG); | ||
146 | y0 += 17; | ||
147 | draw_rect(x0, y0, x1, y0 + 10, COL_FG); | ||
148 | txt_drawf("MUTE", x0 + 2, y0 + 1, COL_FG); | ||
149 | txt_drawf("OFF", x1 + 8, y0 + 1, COL_FG); | ||
150 | y0 += 17; | ||
151 | draw_rect(x0, y0, x1, y0 + 10, COL_FG); | ||
152 | txt_drawf("BPM", x0 + 2, y0 + 1, COL_FG); | ||
153 | txt_drawf("OFF", x1 + 8, y0 + 1, COL_FG); | ||
154 | y0 += 17; | ||
155 | |||
156 | txt_drawf("GENERAL", x0, y0, COL_FG); | ||
157 | draw_line(x0, y0 + 9, SCREEN_WIDTH - 9, y0 + 9, COL_FG); | ||
158 | y0 += 17; | ||
159 | draw_rect(x0, y0, x1, y0 + 10, COL_FG); | ||
160 | txt_drawf("AUTO-SAVE", x0 + 2, y0 + 1, COL_FG); | ||
161 | txt_drawf("OFF", x1 + 8, y0 + 1, COL_FG); | ||
162 | y0 += 17; | ||
163 | draw_rect(x0, y0, x1, y0 + 10, COL_FG); | ||
164 | txt_drawf("SYNC", x0 + 2, y0 + 1, COL_FG); | ||
165 | txt_drawf("%s", x1 + 8, y0 + 1, COL_FG, sync_setting_str[settings.sync]); | ||
166 | y0 += 17; | ||
167 | draw_rect(x0, y0, x1, y0 + 10, COL_FG); | ||
168 | txt_drawf("THEME", x0 + 2, y0 + 1, COL_FG); | ||
169 | txt_drawf("%s", x1 + 8, y0 + 1, COL_FG, theme_setting_str[settings.theme]); | ||
170 | y0 += 17; | ||
171 | draw_rect(x0, y0, x1, y0 + 10, COL_FG); | ||
172 | txt_drawf("HELP", x0 + 2, y0 + 1, COL_FG); | ||
173 | txt_drawf("%s", x1 + 8, y0 + 1, COL_FG, help_setting_str[settings.help]); | ||
174 | |||
140 | PROF(draw_settings_cursor(), draw_cursor_cycles); | 175 | PROF(draw_settings_cursor(), draw_cursor_cycles); |
141 | } | 176 | } |
142 | 177 | ||