From 83296ffbe924f13309b75af4d7bc3a47a8981925 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 23 May 2024 16:50:58 +0200 Subject: [PATCH] [ui_sdl] named fields in structs --- src/ui_sdl.c | 1862 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 1764 insertions(+), 98 deletions(-) diff --git a/src/ui_sdl.c b/src/ui_sdl.c index b3a77a1..db58023 100644 --- a/src/ui_sdl.c +++ b/src/ui_sdl.c @@ -154,123 +154,1789 @@ static unsigned int ARGBColors[ BLACK + 1 ]; static sdl_button_t* buttons = 0; static sdl_button_t buttons_sx[] = { - {"A", 0, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "A", 0, 0, 0, 0, 0, 0}, - {"B", 50, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "B", 0, 0, 0, 0, 0, 0}, - {"C", 100, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "C", 0, 0, 0, 0, 0, 0}, - {"D", 150, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "D", 0, 0, 0, 0, 0, 0}, - {"E", 200, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "E", 0, 0, 0, 0, 0, 0}, - {"F", 250, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "F", 0, 0, 0, 0, 0, 0}, + {.name = "A", + .x = 0, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "A", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "B", + .x = 50, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "B", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "C", + .x = 100, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "C", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "D", + .x = 150, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "D", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "E", + .x = 200, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "E", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "F", + .x = 250, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "F", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"MTH", 0, 50, 36, 26, WHITE, "MTH", 0, 0, 0, 0, "G", "PRINT", 1, 0, 0, 0, 0}, - {"PRG", 50, 50, 36, 26, WHITE, "PRG", 0, 0, 0, 0, "H", "I/O", 1, 0, 0, 0, 0}, - {"CST", 100, 50, 36, 26, WHITE, "CST", 0, 0, 0, 0, "I", "MODES", 1, 0, 0, 0, 0}, - {"VAR", 150, 50, 36, 26, WHITE, "VAR", 0, 0, 0, 0, "J", "MEMORY", 1, 0, 0, 0, 0}, - {"UP", 200, 50, 36, 26, WHITE, 0, 0, up_width, up_height, up_bitmap, "K", "LIBRARY", 1, 0, 0, 0, 0}, - {"NXT", 250, 50, 36, 26, WHITE, "NXT", 0, 0, 0, 0, "L", "PREV", 0, 0, 0, 0, 0}, + {.name = "MTH", + .x = 0, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "MTH", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "G", + .left = "PRINT", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "PRG", + .x = 50, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "PRG", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "H", + .left = "I/O", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "CST", + .x = 100, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "CST", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "I", + .left = "MODES", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "VAR", + .x = 150, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "VAR", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "J", + .left = "MEMORY", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "UP", + .x = 200, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = up_width, + .lh = up_height, + .lb = up_bitmap, + .letter = "K", + .left = "LIBRARY", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "NXT", + .x = 250, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "NXT", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "L", + .left = "PREV", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"COLON", 0, 100, 36, 26, WHITE, 0, 0, colon_width, colon_height, colon_bitmap, "M", "UP", 0, "HOME", 0, 0, 0}, - {"STO", 50, 100, 36, 26, WHITE, "STO", 0, 0, 0, 0, "N", "DEF", 0, "RCL", 0, 0, 0}, - {"EVAL", 100, 100, 36, 26, WHITE, "EVAL", 0, 0, 0, 0, "O", "aQ", 0, "aNUM", 0, 0, 0}, - {"LEFT", 150, 100, 36, 26, WHITE, 0, 0, left_width, left_height, left_bitmap, "P", "GRAPH", 0, 0, 0, 0, 0}, - {"DOWN", 200, 100, 36, 26, WHITE, 0, 0, down_width, down_height, down_bitmap, "Q", "REVIEW", 0, 0, 0, 0, 0}, - {"RIGHT", 250, 100, 36, 26, WHITE, 0, 0, right_width, right_height, right_bitmap, "R", "SWAP", 0, 0, 0, 0, 0}, + {.name = "COLON", + .x = 0, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = colon_width, + .lh = colon_height, + .lb = colon_bitmap, + .letter = "M", + .left = "UP", + .is_menu = 0, + .right = "HOME", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "STO", + .x = 50, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "STO", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "N", + .left = "DEF", + .is_menu = 0, + .right = "RCL", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "EVAL", + .x = 100, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "EVAL", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "O", + .left = "aQ", + .is_menu = 0, + .right = "aNUM", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "LEFT", + .x = 150, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = left_width, + .lh = left_height, + .lb = left_bitmap, + .letter = "P", + .left = "GRAPH", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "DOWN", + .x = 200, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = down_width, + .lh = down_height, + .lb = down_bitmap, + .letter = "Q", + .left = "REVIEW", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "RIGHT", + .x = 250, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = right_width, + .lh = right_height, + .lb = right_bitmap, + .letter = "R", + .left = "SWAP", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"SIN", 0, 150, 36, 26, WHITE, "SIN", 0, 0, 0, 0, "S", "ASIN", 0, "b", 0, 0, 0}, - {"COS", 50, 150, 36, 26, WHITE, "COS", 0, 0, 0, 0, "T", "ACOS", 0, "c", 0, 0, 0}, - {"TAN", 100, 150, 36, 26, WHITE, "TAN", 0, 0, 0, 0, "U", "ATAN", 0, "d", 0, 0, 0}, - {"SQRT", 150, 150, 36, 26, WHITE, 0, 0, sqrt_width, sqrt_height, sqrt_bitmap, "V", "e", 0, "f", 0, 0, 0}, - {"POWER", 200, 150, 36, 26, WHITE, 0, 0, power_width, power_height, power_bitmap, "W", "g", 0, "LOG", 0, 0, 0}, - {"INV", 250, 150, 36, 26, WHITE, 0, 0, inv_width, inv_height, inv_bitmap, "X", "h", 0, "LN", 0, 0, 0}, + {.name = "SIN", + .x = 0, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "SIN", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "S", + .left = "ASIN", + .is_menu = 0, + .right = "b", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "COS", + .x = 50, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "COS", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "T", + .left = "ACOS", + .is_menu = 0, + .right = "c", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "TAN", + .x = 100, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "TAN", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "U", + .left = "ATAN", + .is_menu = 0, + .right = "d", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "SQRT", + .x = 150, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = sqrt_width, + .lh = sqrt_height, + .lb = sqrt_bitmap, + .letter = "V", + .left = "e", + .is_menu = 0, + .right = "f", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "POWER", + .x = 200, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = power_width, + .lh = power_height, + .lb = power_bitmap, + .letter = "W", + .left = "g", + .is_menu = 0, + .right = "LOG", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "INV", + .x = 250, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = inv_width, + .lh = inv_height, + .lb = inv_bitmap, + .letter = "X", + .left = "h", + .is_menu = 0, + .right = "LN", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"ENTER", 0, 200, 86, 26, WHITE, "ENTER", 2, 0, 0, 0, 0, "EQUATION", 0, "MATRIX", 0, 0, 0}, - {"NEG", 100, 200, 36, 26, WHITE, 0, 0, neg_width, neg_height, neg_bitmap, "Y", "EDIT", 0, "VISIT", 0, 0, 0}, - {"EEX", 150, 200, 36, 26, WHITE, "EEX", 0, 0, 0, 0, "Z", "2D", 0, "3D", 0, 0, 0}, - {"DEL", 200, 200, 36, 26, WHITE, "DEL", 0, 0, 0, 0, 0, "PURGE", 0, 0, 0, 0, 0}, - {"BS", 250, 200, 36, 26, WHITE, 0, 0, bs_width, bs_height, bs_bitmap, 0, "DROP", 0, "CLR", 0, 0, 0}, + {.name = "ENTER", + .x = 0, + .y = 200, + .w = 86, + .h = 26, + .lc = WHITE, + .label = "ENTER", + .font_size = 2, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "EQUATION", + .is_menu = 0, + .right = "MATRIX", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "NEG", + .x = 100, + .y = 200, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = neg_width, + .lh = neg_height, + .lb = neg_bitmap, + .letter = "Y", + .left = "EDIT", + .is_menu = 0, + .right = "VISIT", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "EEX", + .x = 150, + .y = 200, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "EEX", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "Z", + .left = "2D", + .is_menu = 0, + .right = "3D", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "DEL", + .x = 200, + .y = 200, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "DEL", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "PURGE", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "BS", + .x = 250, + .y = 200, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = bs_width, + .lh = bs_height, + .lb = bs_bitmap, + .letter = 0, + .left = "DROP", + .is_menu = 0, + .right = "CLR", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"ALPHA", 0, 250, 36, 26, WHITE, 0, 0, alpha_width, alpha_height, alpha_bitmap, 0, "USR", 0, "ENTRY", 0, 0, 0}, - {"7", 60, 250, 46, 26, WHITE, "7", 1, 0, 0, 0, 0, "SOLVE", 1, 0, 0, 0, 0}, - {"8", 120, 250, 46, 26, WHITE, "8", 1, 0, 0, 0, 0, "PLOT", 1, 0, 0, 0, 0}, - {"9", 180, 250, 46, 26, WHITE, "9", 1, 0, 0, 0, 0, "ALGEBRA", 1, 0, 0, 0, 0}, - {"DIV", 240, 250, 46, 26, WHITE, 0, 0, div_width, div_height, div_bitmap, 0, "( )", 0, "#", 0, 0, 0}, + {.name = "ALPHA", + .x = 0, + .y = 250, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = alpha_width, + .lh = alpha_height, + .lb = alpha_bitmap, + .letter = 0, + .left = "USR", + .is_menu = 0, + .right = "ENTRY", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "7", + .x = 60, + .y = 250, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "7", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "SOLVE", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "8", + .x = 120, + .y = 250, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "8", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "PLOT", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "9", + .x = 180, + .y = 250, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "9", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "ALGEBRA", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "DIV", + .x = 240, + .y = 250, + .w = 46, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = div_width, + .lh = div_height, + .lb = div_bitmap, + .letter = 0, + .left = "( )", + .is_menu = 0, + .right = "#", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"SHL", 0, 300, 36, 26, LEFT, 0, 0, shl_width, shl_height, shl_bitmap, 0, 0, 0, 0, 0, 0, 0}, - {"4", 60, 300, 46, 26, WHITE, "4", 1, 0, 0, 0, 0, "TIME", 1, 0, 0, 0, 0}, - {"5", 120, 300, 46, 26, WHITE, "5", 1, 0, 0, 0, 0, "STAT", 1, 0, 0, 0, 0}, - {"6", 180, 300, 46, 26, WHITE, "6", 1, 0, 0, 0, 0, "UNITS", 1, 0, 0, 0, 0}, - {"MUL", 240, 300, 46, 26, WHITE, 0, 0, mul_width, mul_height, mul_bitmap, 0, "[ ]", 0, "_", 0, 0, 0}, + {.name = "SHL", + .x = 0, + .y = 300, + .w = 36, + .h = 26, + .lc = LEFT, + .label = 0, + .font_size = 0, + .lw = shl_width, + .lh = shl_height, + .lb = shl_bitmap, + .letter = 0, + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "4", + .x = 60, + .y = 300, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "4", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "TIME", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "5", + .x = 120, + .y = 300, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "5", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "STAT", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "6", + .x = 180, + .y = 300, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "6", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "UNITS", + .is_menu = 1, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "MUL", + .x = 240, + .y = 300, + .w = 46, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = mul_width, + .lh = mul_height, + .lb = mul_bitmap, + .letter = 0, + .left = "[ ]", + .is_menu = 0, + .right = "_", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"SHR", 0, 350, 36, 26, RIGHT, 0, 0, shr_width, shr_height, shr_bitmap, 0, 0, 0, 0, 0, 0, 0}, - {"1", 60, 350, 46, 26, WHITE, "1", 1, 0, 0, 0, 0, "RAD", 0, "POLAR", 0, 0, 0}, - {"2", 120, 350, 46, 26, WHITE, "2", 1, 0, 0, 0, 0, "STACK", 0, "ARG", 0, 0, 0}, - {"3", 180, 350, 46, 26, WHITE, "3", 1, 0, 0, 0, 0, "CMD", 0, "MENU", 0, 0, 0}, - {"MINUS", 240, 350, 46, 26, WHITE, 0, 0, minus_width, minus_height, minus_bitmap, 0, "i", 0, "j", 0, 0, 0}, + {.name = "SHR", + .x = 0, + .y = 350, + .w = 36, + .h = 26, + .lc = RIGHT, + .label = 0, + .font_size = 0, + .lw = shr_width, + .lh = shr_height, + .lb = shr_bitmap, + .letter = 0, + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "1", + .x = 60, + .y = 350, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "1", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "RAD", + .is_menu = 0, + .right = "POLAR", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "2", + .x = 120, + .y = 350, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "2", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "STACK", + .is_menu = 0, + .right = "ARG", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "3", + .x = 180, + .y = 350, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "3", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "CMD", + .is_menu = 0, + .right = "MENU", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "MINUS", + .x = 240, + .y = 350, + .w = 46, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = minus_width, + .lh = minus_height, + .lb = minus_bitmap, + .letter = 0, + .left = "i", + .is_menu = 0, + .right = "j", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"ON", 0, 400, 36, 26, WHITE, "ON", 0, 0, 0, 0, 0, "CONT", 0, "OFF", "ATTN", 0, 0}, - {"0", 60, 400, 46, 26, WHITE, "0", 1, 0, 0, 0, 0, "= ", 0, " a", 0, 0, 0}, - {"PERIOD", 120, 400, 46, 26, WHITE, ".", 1, 0, 0, 0, 0, ", ", 0, " k", 0, 0, 0}, - {"SPC", 180, 400, 46, 26, WHITE, "SPC", 0, 0, 0, 0, 0, "l ", 0, " m", 0, 0, 0}, - {"PLUS", 240, 400, 46, 26, WHITE, 0, 0, plus_width, plus_height, plus_bitmap, 0, "{ }", 0, ": :", 0, 0, 0}, + {.name = "ON", + .x = 0, + .y = 400, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "ON", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "CONT", + .is_menu = 0, + .right = "OFF", + .sub = "ATTN", + .surfaceup = 0, + .surfacedown = 0}, + {.name = "0", + .x = 60, + .y = 400, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "0", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "= ", + .is_menu = 0, + .right = " a", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "PERIOD", + .x = 120, + .y = 400, + .w = 46, + .h = 26, + .lc = WHITE, + .label = ".", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = ",", + .is_menu = 0, + .right = " k", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "SPC", + .x = 180, + .y = 400, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "SPC", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "l ", + .is_menu = 0, + .right = " m", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "PLUS", + .x = 240, + .y = 400, + .w = 46, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = plus_width, + .lh = plus_height, + .lb = plus_bitmap, + .letter = 0, + .left = "{ }", + .is_menu = 0, + .right = ": :", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, }; static sdl_button_t buttons_gx[] = { - {"A", 0, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "A", 0, 0, 0, 0, 0, 0}, - {"B", 50, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "B", 0, 0, 0, 0, 0, 0}, - {"C", 100, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "C", 0, 0, 0, 0, 0, 0}, - {"D", 150, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "D", 0, 0, 0, 0, 0, 0}, - {"E", 200, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "E", 0, 0, 0, 0, 0, 0}, - {"F", 250, 0, 36, 23, WHITE, 0, 0, menu_label_width, menu_label_height, menu_label_bitmap, "F", 0, 0, 0, 0, 0, 0}, + {.name = "A", + .x = 0, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "A", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "B", + .x = 50, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "B", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "C", + .x = 100, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "C", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "D", + .x = 150, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "D", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "E", + .x = 200, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "E", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "F", + .x = 250, + .y = 0, + .w = 36, + .h = 23, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = menu_label_width, + .lh = menu_label_height, + .lb = menu_label_bitmap, + .letter = "F", + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"MTH", 0, 50, 36, 26, WHITE, "MTH", 0, 0, 0, 0, "G", "RAD", 0, "POLAR", 0, 0, 0}, - {"PRG", 50, 50, 36, 26, WHITE, "PRG", 0, 0, 0, 0, "H", 0, 0, "CHARS", 0, 0, 0}, - {"CST", 100, 50, 36, 26, WHITE, "CST", 0, 0, 0, 0, "I", 0, 0, "MODES", 0, 0, 0}, - {"VAR", 150, 50, 36, 26, WHITE, "VAR", 0, 0, 0, 0, "J", 0, 0, "MEMORY", 0, 0, 0}, - {"UP", 200, 50, 36, 26, WHITE, 0, 0, up_width, up_height, up_bitmap, "K", 0, 0, "STACK", 0, 0, 0}, - {"NXT", 250, 50, 36, 26, WHITE, "NXT", 0, 0, 0, 0, "L", "PREV", 0, "MENU", 0, 0, 0}, + {.name = "MTH", + .x = 0, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "MTH", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "G", + .left = "RAD", + .is_menu = 0, + .right = "POLAR", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "PRG", + .x = 50, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "PRG", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "H", + .left = 0, + .is_menu = 0, + .right = "CHARS", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "CST", + .x = 100, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "CST", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "I", + .left = 0, + .is_menu = 0, + .right = "MODES", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "VAR", + .x = 150, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "VAR", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "J", + .left = 0, + .is_menu = 0, + .right = "MEMORY", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "UP", + .x = 200, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = up_width, + .lh = up_height, + .lb = up_bitmap, + .letter = "K", + .left = 0, + .is_menu = 0, + .right = "STACK", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "NXT", + .x = 250, + .y = 50, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "NXT", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "L", + .left = "PREV", + .is_menu = 0, + .right = "MENU", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"COLON", 0, 100, 36, 26, WHITE, 0, 0, colon_width, colon_height, colon_bitmap, "M", "UP", 0, "HOME", 0, 0, 0}, - {"STO", 50, 100, 36, 26, WHITE, "STO", 0, 0, 0, 0, "N", "DEF", 0, "RCL", 0, 0, 0}, - {"EVAL", 100, 100, 36, 26, WHITE, "EVAL", 0, 0, 0, 0, "O", "aNUM", 0, "UNDO", 0, 0, 0}, - {"LEFT", 150, 100, 36, 26, WHITE, 0, 0, left_width, left_height, left_bitmap, "P", "PICTURE", 0, 0, 0, 0, 0}, - {"DOWN", 200, 100, 36, 26, WHITE, 0, 0, down_width, down_height, down_bitmap, "Q", "VIEW", 0, 0, 0, 0, 0}, - {"RIGHT", 250, 100, 36, 26, WHITE, 0, 0, right_width, right_height, right_bitmap, "R", "SWAP", 0, 0, 0, 0, 0}, + {.name = "COLON", + .x = 0, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = colon_width, + .lh = colon_height, + .lb = colon_bitmap, + .letter = "M", + .left = "UP", + .is_menu = 0, + .right = "HOME", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "STO", + .x = 50, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "STO", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "N", + .left = "DEF", + .is_menu = 0, + .right = "RCL", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "EVAL", + .x = 100, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "EVAL", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "O", + .left = "aNUM", + .is_menu = 0, + .right = "UNDO", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "LEFT", + .x = 150, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = left_width, + .lh = left_height, + .lb = left_bitmap, + .letter = "P", + .left = "PICTURE", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "DOWN", + .x = 200, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = down_width, + .lh = down_height, + .lb = down_bitmap, + .letter = "Q", + .left = "VIEW", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "RIGHT", + .x = 250, + .y = 100, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = right_width, + .lh = right_height, + .lb = right_bitmap, + .letter = "R", + .left = "SWAP", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"SIN", 0, 150, 36, 26, WHITE, "SIN", 0, 0, 0, 0, "S", "ASIN", 0, "b", 0, 0, 0}, - {"COS", 50, 150, 36, 26, WHITE, "COS", 0, 0, 0, 0, "T", "ACOS", 0, "c", 0, 0, 0}, - {"TAN", 100, 150, 36, 26, WHITE, "TAN", 0, 0, 0, 0, "U", "ATAN", 0, "d", 0, 0, 0}, - {"SQRT", 150, 150, 36, 26, WHITE, 0, 0, sqrt_width, sqrt_height, sqrt_bitmap, "V", "n", 0, "o", 0, 0, 0}, - {"POWER", 200, 150, 36, 26, WHITE, 0, 0, power_width, power_height, power_bitmap, "W", "p", 0, "LOG", 0, 0, 0}, - {"INV", 250, 150, 36, 26, WHITE, 0, 0, inv_width, inv_height, inv_bitmap, "X", "q", 0, "LN", 0, 0, 0}, + {.name = "SIN", + .x = 0, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "SIN", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "S", + .left = "ASIN", + .is_menu = 0, + .right = "b", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "COS", + .x = 50, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "COS", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "T", + .left = "ACOS", + .is_menu = 0, + .right = "c", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "TAN", + .x = 100, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "TAN", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "U", + .left = "ATAN", + .is_menu = 0, + .right = "d", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "SQRT", + .x = 150, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = sqrt_width, + .lh = sqrt_height, + .lb = sqrt_bitmap, + .letter = "V", + .left = "n", + .is_menu = 0, + .right = "o", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "POWER", + .x = 200, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = power_width, + .lh = power_height, + .lb = power_bitmap, + .letter = "W", + .left = "p", + .is_menu = 0, + .right = "LOG", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "INV", + .x = 250, + .y = 150, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = inv_width, + .lh = inv_height, + .lb = inv_bitmap, + .letter = "X", + .left = "q", + .is_menu = 0, + .right = "LN", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"ENTER", 0, 200, 86, 26, WHITE, "ENTER", 2, 0, 0, 0, 0, "EQUATION", 0, "MATRIX", 0, 0, 0}, - {"NEG", 100, 200, 36, 26, WHITE, 0, 0, neg_width, neg_height, neg_bitmap, "Y", "EDIT", 0, "CMD", 0, 0, 0}, - {"EEX", 150, 200, 36, 26, WHITE, "EEX", 0, 0, 0, 0, "Z", "PURG", 0, "ARG", 0, 0, 0}, - {"DEL", 200, 200, 36, 26, WHITE, "DEL", 0, 0, 0, 0, 0, "CLEAR", 0, 0, 0, 0, 0}, - {"BS", 250, 200, 36, 26, WHITE, 0, 0, bs_width, bs_height, bs_bitmap, 0, "DROP", 0, 0, 0, 0, 0}, + {.name = "ENTER", + .x = 0, + .y = 200, + .w = 86, + .h = 26, + .lc = WHITE, + .label = "ENTER", + .font_size = 2, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "EQUATION", + .is_menu = 0, + .right = "MATRIX", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "NEG", + .x = 100, + .y = 200, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = neg_width, + .lh = neg_height, + .lb = neg_bitmap, + .letter = "Y", + .left = "EDIT", + .is_menu = 0, + .right = "CMD", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "EEX", + .x = 150, + .y = 200, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "EEX", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = "Z", + .left = "PURG", + .is_menu = 0, + .right = "ARG", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "DEL", + .x = 200, + .y = 200, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "DEL", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "CLEAR", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "BS", + .x = 250, + .y = 200, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = bs_width, + .lh = bs_height, + .lb = bs_bitmap, + .letter = 0, + .left = "DROP", + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"ALPHA", 0, 250, 36, 26, WHITE, 0, 0, alpha_width, alpha_height, alpha_bitmap, 0, "USER", 0, "ENTRY", 0, 0, 0}, - {"7", 60, 250, 46, 26, WHITE, "7", 1, 0, 0, 0, 0, 0, 1, "SOLVE", 0, 0, 0}, - {"8", 120, 250, 46, 26, WHITE, "8", 1, 0, 0, 0, 0, 0, 1, "PLOT", 0, 0, 0}, - {"9", 180, 250, 46, 26, WHITE, "9", 1, 0, 0, 0, 0, 0, 1, "SYMBOLIC", 0, 0, 0}, - {"DIV", 240, 250, 46, 26, WHITE, 0, 0, div_width, div_height, div_bitmap, 0, "r ", 0, "s", 0, 0, 0}, + {.name = "ALPHA", + .x = 0, + .y = 250, + .w = 36, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = alpha_width, + .lh = alpha_height, + .lb = alpha_bitmap, + .letter = 0, + .left = "USER", + .is_menu = 0, + .right = "ENTRY", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "7", + .x = 60, + .y = 250, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "7", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "SOLVE", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "8", + .x = 120, + .y = 250, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "8", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "PLOT", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "9", + .x = 180, + .y = 250, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "9", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "SYMBOLIC", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "DIV", + .x = 240, + .y = 250, + .w = 46, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = div_width, + .lh = div_height, + .lb = div_bitmap, + .letter = 0, + .left = "r ", + .is_menu = 0, + .right = "s", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"SHL", 0, 300, 36, 26, LEFT, 0, 0, shl_width, shl_height, shl_bitmap, 0, 0, 0, 0, 0, 0, 0}, - {"4", 60, 300, 46, 26, WHITE, "4", 1, 0, 0, 0, 0, 0, 1, "TIME", 0, 0, 0}, - {"5", 120, 300, 46, 26, WHITE, "5", 1, 0, 0, 0, 0, 0, 1, "STAT", 0, 0, 0}, - {"6", 180, 300, 46, 26, WHITE, "6", 1, 0, 0, 0, 0, 0, 1, "UNITS", 0, 0, 0}, - {"MUL", 240, 300, 46, 26, WHITE, 0, 0, mul_width, mul_height, mul_bitmap, 0, "t ", 0, "u", 0, 0, 0}, + {.name = "SHL", + .x = 0, + .y = 300, + .w = 36, + .h = 26, + .lc = LEFT, + .label = 0, + .font_size = 0, + .lw = shl_width, + .lh = shl_height, + .lb = shl_bitmap, + .letter = 0, + .left = 0, + .is_menu = 0, + .right = 0, + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "4", + .x = 60, + .y = 300, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "4", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "TIME", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "5", + .x = 120, + .y = 300, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "5", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "STAT", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "6", + .x = 180, + .y = 300, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "6", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "UNITS", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "MUL", + .x = 240, + .y = 300, + .w = 46, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = mul_width, + .lh = mul_height, + .lb = mul_bitmap, + .letter = 0, + .left = "t ", + .is_menu = 0, + .right = "u", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"SHR", 0, 350, 36, 26, RIGHT, 0, 0, shr_width, shr_height, shr_bitmap, 0, 0, 1, " ", 0, 0, 0}, - {"1", 60, 350, 46, 26, WHITE, "1", 1, 0, 0, 0, 0, 0, 1, "I/O", 0, 0, 0}, - {"2", 120, 350, 46, 26, WHITE, "2", 1, 0, 0, 0, 0, 0, 1, "LIBRARY", 0, 0, 0}, - {"3", 180, 350, 46, 26, WHITE, "3", 1, 0, 0, 0, 0, 0, 1, "EQ LIB", 0, 0, 0}, - {"MINUS", 240, 350, 46, 26, WHITE, 0, 0, minus_width, minus_height, minus_bitmap, 0, "v ", 0, "w", 0, 0, 0}, + {.name = "SHR", + .x = 0, + .y = 350, + .w = 36, + .h = 26, + .lc = RIGHT, + .label = 0, + .font_size = 0, + .lw = shr_width, + .lh = shr_height, + .lb = shr_bitmap, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = " ", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "1", + .x = 60, + .y = 350, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "1", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "I/O", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "2", + .x = 120, + .y = 350, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "2", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "LIBRARY", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "3", + .x = 180, + .y = 350, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "3", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = 0, + .is_menu = 1, + .right = "EQ LIB", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "MINUS", + .x = 240, + .y = 350, + .w = 46, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = minus_width, + .lh = minus_height, + .lb = minus_bitmap, + .letter = 0, + .left = "v ", + .is_menu = 0, + .right = "w", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, - {"ON", 0, 400, 36, 26, WHITE, "ON", 0, 0, 0, 0, 0, "CONT", 0, "OFF", "CANCEL", 0, 0}, - {"0", 60, 400, 46, 26, WHITE, "0", 1, 0, 0, 0, 0, "\004 ", 0, "\003", 0, 0, 0}, - {"PERIOD", 120, 400, 46, 26, WHITE, ".", 1, 0, 0, 0, 0, "\002 ", 0, "\001", 0, 0, 0}, - {"SPC", 180, 400, 46, 26, WHITE, "SPC", 0, 0, 0, 0, 0, "\005 ", 0, "z", 0, 0, 0}, - {"PLUS", 240, 400, 46, 26, WHITE, 0, 0, plus_width, plus_height, plus_bitmap, 0, "x ", 0, "y", 0, 0, 0}, + {.name = "ON", + .x = 0, + .y = 400, + .w = 36, + .h = 26, + .lc = WHITE, + .label = "ON", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "CONT", + .is_menu = 0, + .right = "OFF", + .sub = "CANCEL", + .surfaceup = 0, + .surfacedown = 0}, + {.name = "0", + .x = 60, + .y = 400, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "0", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "\004 ", + .is_menu = 0, + .right = "\003", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "PERIOD", + .x = 120, + .y = 400, + .w = 46, + .h = 26, + .lc = WHITE, + .label = ".", + .font_size = 1, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "\002 ", + .is_menu = 0, + .right = "\001", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "SPC", + .x = 180, + .y = 400, + .w = 46, + .h = 26, + .lc = WHITE, + .label = "SPC", + .font_size = 0, + .lw = 0, + .lh = 0, + .lb = 0, + .letter = 0, + .left = "\005 ", + .is_menu = 0, + .right = "z", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, + {.name = "PLUS", + .x = 240, + .y = 400, + .w = 46, + .h = 26, + .lc = WHITE, + .label = 0, + .font_size = 0, + .lw = plus_width, + .lh = plus_height, + .lb = plus_bitmap, + .letter = 0, + .left = "x ", + .is_menu = 0, + .right = "y", + .sub = 0, + .surfaceup = 0, + .surfacedown = 0}, }; static sdl_ann_struct_t ann_tbl[] = {