| Previous | 199869 Revisions | Next |
| r45071 Sunday 21st February, 2016 at 04:03:06 UTC by Dankan1890 |
|---|
| cleanup. (nw) |
| [src/emu/ui] | menu.cpp ui.cpp ui.h |
| r253582 | r253583 | |
|---|---|---|
| 537 | 537 | machine().ui().draw_outlined_box(container, x1, y1, x2, y2, UI_BACKGROUND_COLOR); |
| 538 | 538 | |
| 539 | 539 | // determine the first visible line based on the current selection |
| 540 | if (selected > top_line + visible_lines) | |
| 541 | top_line = selected - (visible_lines / 2); | |
| 540 | 542 | if (top_line < 0 || selected == 0) |
| 541 | 543 | top_line = 0; |
| 542 | 544 | if (top_line + visible_lines >= item.size()) |
| r253582 | r253583 | |
|---|---|---|
| 2773 | 2773 | |
| 2774 | 2774 | if (machine != nullptr) { |
| 2775 | 2775 | ui_options option; |
| 2776 | for (int x = 0; x < ARRAY_LENGTH(s_color_list); | |
| 2776 | for (int x = 0; x < ARRAY_LENGTH(s_color_list); ++x) { | |
| 2777 | 2777 | const char *o_default = option.value(s_color_list[x]); |
| 2778 | 2778 | const char *s_option = machine->ui().options().value(s_color_list[x]); |
| 2779 | 2779 | int len = strlen(s_option); |
| r253582 | r253583 | |
|---|---|---|
| 226 | 226 | FUNCTION PROTOTYPES |
| 227 | 227 | ***************************************************************************/ |
| 228 | 228 | rgb_t decode_ui_color(int id, running_machine *machine = nullptr); |
| 229 | int get_font_rows(running_machine *machine = | |
| 229 | int get_font_rows(running_machine *machine = nullptr); | |
| 230 | 230 | #endif /* __USRINTRF_H__ */ |
| https://github.com/mamedev/mame/commit/c890643fd5d5120e75b34896f395b3d38288e655 |
| Previous | 199869 Revisions | Next |