diff --git a/src/ui_x11.c b/src/ui_x11.c index 7445a19..56a4424 100644 --- a/src/ui_x11.c +++ b/src/ui_x11.c @@ -291,173 +291,2025 @@ static char* res_name; static char* res_class; static x11_color_t colors_sx[] = { - {"white", 255, 255, 255, 255, 255, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"left", 255, 166, 0, 255, 230, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"right", 0, 210, 255, 255, 169, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"but_top", 109, 93, 93, 0, 91, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"button", 90, 77, 77, 0, 81, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"but_bot", 76, 65, 65, 0, 69, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"lcd_col", 202, 221, 92, 255, 205, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"pix_col", 0, 0, 128, 0, 20, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"pad_top", 109, 78, 78, 0, 88, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"pad", 90, 64, 64, 0, 73, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"pad_bot", 76, 54, 54, 0, 60, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"disp_pad_top", 155, 118, 84, 0, 124, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"disp_pad", 124, 94, 67, 0, 99, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"disp_pad_bot", 100, 75, 53, 0, 79, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"logo", 204, 169, 107, 255, 172, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"logo_back", 64, 64, 64, 0, 65, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"label", 202, 184, 144, 255, 185, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"frame", 0, 0, 0, 255, 0, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"underlay", 60, 42, 42, 0, 48, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"black", 0, 0, 0, 0, 0, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - /* { 0 } */ + {.name = "white", + .r = 255, + .g = 255, + .b = 255, + .mono_rgb = 255, + .gray_rgb = 255, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "left", .r = 255, .g = 166, .b = 0, .mono_rgb = 255, .gray_rgb = 230, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "right", + .r = 0, + .g = 210, + .b = 255, + .mono_rgb = 255, + .gray_rgb = 169, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "but_top", .r = 109, .g = 93, .b = 93, .mono_rgb = 0, .gray_rgb = 91, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "button", .r = 90, .g = 77, .b = 77, .mono_rgb = 0, .gray_rgb = 81, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "but_bot", .r = 76, .g = 65, .b = 65, .mono_rgb = 0, .gray_rgb = 69, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "lcd_col", + .r = 202, + .g = 221, + .b = 92, + .mono_rgb = 255, + .gray_rgb = 205, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "pix_col", .r = 0, .g = 0, .b = 128, .mono_rgb = 0, .gray_rgb = 20, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "pad_top", .r = 109, .g = 78, .b = 78, .mono_rgb = 0, .gray_rgb = 88, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "pad", .r = 90, .g = 64, .b = 64, .mono_rgb = 0, .gray_rgb = 73, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "pad_bot", .r = 76, .g = 54, .b = 54, .mono_rgb = 0, .gray_rgb = 60, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "disp_pad_top", + .r = 155, + .g = 118, + .b = 84, + .mono_rgb = 0, + .gray_rgb = 124, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "disp_pad", + .r = 124, + .g = 94, + .b = 67, + .mono_rgb = 0, + .gray_rgb = 99, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "disp_pad_bot", + .r = 100, + .g = 75, + .b = 53, + .mono_rgb = 0, + .gray_rgb = 79, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "logo", + .r = 204, + .g = 169, + .b = 107, + .mono_rgb = 255, + .gray_rgb = 172, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "logo_back", + .r = 64, + .g = 64, + .b = 64, + .mono_rgb = 0, + .gray_rgb = 65, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "label", + .r = 202, + .g = 184, + .b = 144, + .mono_rgb = 255, + .gray_rgb = 185, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "frame", .r = 0, .g = 0, .b = 0, .mono_rgb = 255, .gray_rgb = 0, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "underlay", .r = 60, .g = 42, .b = 42, .mono_rgb = 0, .gray_rgb = 48, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "black", .r = 0, .g = 0, .b = 0, .mono_rgb = 0, .gray_rgb = 0, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, }; static x11_color_t colors_gx[] = { - {"white", 255, 255, 255, 255, 255, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"left", 255, 186, 255, 255, 220, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"right", 0, 255, 204, 255, 169, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"but_top", 104, 104, 104, 0, 104, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"button", 88, 88, 88, 0, 88, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"but_bot", 74, 74, 74, 0, 74, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"lcd_col", 202, 221, 92, 255, 205, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"pix_col", 0, 0, 128, 0, 20, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"pad_top", 88, 88, 88, 0, 88, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"pad", 74, 74, 74, 0, 74, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"pad_bot", 64, 64, 64, 0, 64, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"disp_pad_top", 128, 128, 138, 0, 128, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"disp_pad", 104, 104, 110, 0, 104, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"disp_pad_bot", 84, 84, 90, 0, 84, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"logo", 176, 176, 184, 255, 176, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"logo_back", 104, 104, 110, 0, 104, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"label", 240, 240, 240, 255, 240, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"frame", 0, 0, 0, 255, 0, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"underlay", 104, 104, 110, 0, 104, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - {"black", 0, 0, 0, 0, 0, { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, - /* { 0 } */ + {.name = "white", + .r = 255, + .g = 255, + .b = 255, + .mono_rgb = 255, + .gray_rgb = 255, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "left", + .r = 255, + .g = 186, + .b = 255, + .mono_rgb = 255, + .gray_rgb = 220, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "right", + .r = 0, + .g = 255, + .b = 204, + .mono_rgb = 255, + .gray_rgb = 169, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "but_top", + .r = 104, + .g = 104, + .b = 104, + .mono_rgb = 0, + .gray_rgb = 104, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "button", .r = 88, .g = 88, .b = 88, .mono_rgb = 0, .gray_rgb = 88, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "but_bot", .r = 74, .g = 74, .b = 74, .mono_rgb = 0, .gray_rgb = 74, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "lcd_col", + .r = 202, + .g = 221, + .b = 92, + .mono_rgb = 255, + .gray_rgb = 205, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "pix_col", .r = 0, .g = 0, .b = 128, .mono_rgb = 0, .gray_rgb = 20, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "pad_top", .r = 88, .g = 88, .b = 88, .mono_rgb = 0, .gray_rgb = 88, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "pad", .r = 74, .g = 74, .b = 74, .mono_rgb = 0, .gray_rgb = 74, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "pad_bot", .r = 64, .g = 64, .b = 64, .mono_rgb = 0, .gray_rgb = 64, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "disp_pad_top", + .r = 128, + .g = 128, + .b = 138, + .mono_rgb = 0, + .gray_rgb = 128, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "disp_pad", + .r = 104, + .g = 104, + .b = 110, + .mono_rgb = 0, + .gray_rgb = 104, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "disp_pad_bot", + .r = 84, + .g = 84, + .b = 90, + .mono_rgb = 0, + .gray_rgb = 84, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "logo", + .r = 176, + .g = 176, + .b = 184, + .mono_rgb = 255, + .gray_rgb = 176, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "logo_back", + .r = 104, + .g = 104, + .b = 110, + .mono_rgb = 0, + .gray_rgb = 104, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "label", + .r = 240, + .g = 240, + .b = 240, + .mono_rgb = 255, + .gray_rgb = 240, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "frame", .r = 0, .g = 0, .b = 0, .mono_rgb = 255, .gray_rgb = 0, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, + {.name = "underlay", + .r = 104, + .g = 104, + .b = 110, + .mono_rgb = 0, + .gray_rgb = 104, + .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 } }, + {.name = "black", .r = 0, .g = 0, .b = 0, .mono_rgb = 0, .gray_rgb = 0, .xcolor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }}, }; static x11_button_t* buttons = 0; static x11_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, 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, 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, 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, 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, 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, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"MTH", 0, 50, 36, 26, WHITE, "MTH", 0, 0, 0, 0, "G", "PRINT", 1, 0, 0, 0, 0, 0}, - {"PRG", 50, 50, 36, 26, WHITE, "PRG", 0, 0, 0, 0, "H", "I/O", 1, 0, 0, 0, 0, 0}, - {"CST", 100, 50, 36, 26, WHITE, "CST", 0, 0, 0, 0, "I", "MODES", 1, 0, 0, 0, 0, 0}, - {"VAR", 150, 50, 36, 26, WHITE, "VAR", 0, 0, 0, 0, "J", "MEMORY", 1, 0, 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, 0}, - {"NXT", 250, 50, 36, 26, WHITE, "NXT", 0, 0, 0, 0, "L", "PREV", 0, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"COLON", 0, 100, 36, 26, WHITE, 0, 0, colon_width, colon_height, colon_bitmap, "M", "UP", 0, "HOME", 0, 0, 0, 0}, - {"STO", 50, 100, 36, 26, WHITE, "STO", 0, 0, 0, 0, "N", "DEF", 0, "RCL", 0, 0, 0, 0}, - {"EVAL", 100, 100, 36, 26, WHITE, "EVAL", 0, 0, 0, 0, "O", "aQ", 0, "aNUM", 0, 0, 0, 0}, - {"LEFT", 150, 100, 36, 26, WHITE, 0, 0, left_width, left_height, left_bitmap, "P", "GRAPH", 0, 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, 0}, - {"RIGHT", 250, 100, 36, 26, WHITE, 0, 0, right_width, right_height, right_bitmap, "R", "SWAP", 0, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"SIN", 0, 150, 36, 26, WHITE, "SIN", 0, 0, 0, 0, "S", "ASIN", 0, "b", 0, 0, 0, 0}, - {"COS", 50, 150, 36, 26, WHITE, "COS", 0, 0, 0, 0, "T", "ACOS", 0, "c", 0, 0, 0, 0}, - {"TAN", 100, 150, 36, 26, WHITE, "TAN", 0, 0, 0, 0, "U", "ATAN", 0, "d", 0, 0, 0, 0}, - {"SQRT", 150, 150, 36, 26, WHITE, 0, 0, sqrt_width, sqrt_height, sqrt_bitmap, "V", "e", 0, "f", 0, 0, 0, 0}, - {"POWER", 200, 150, 36, 26, WHITE, 0, 0, power_width, power_height, power_bitmap, "W", "g", 0, "LOG", 0, 0, 0, 0}, - {"INV", 250, 150, 36, 26, WHITE, 0, 0, inv_width, inv_height, inv_bitmap, "X", "h", 0, "LN", 0, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"ENTER", 0, 200, 86, 26, WHITE, "ENTER", 2, 0, 0, 0, 0, "EQUATION", 0, "MATRIX", 0, 0, 0, 0}, - {"NEG", 100, 200, 36, 26, WHITE, 0, 0, neg_width, neg_height, neg_bitmap, "Y", "EDIT", 0, "VISIT", 0, 0, 0, 0}, - {"EEX", 150, 200, 36, 26, WHITE, "EEX", 0, 0, 0, 0, "Z", "2D", 0, "3D", 0, 0, 0, 0}, - {"DEL", 200, 200, 36, 26, WHITE, "DEL", 0, 0, 0, 0, 0, "PURGE", 0, 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, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"ALPHA", 0, 250, 36, 26, WHITE, 0, 0, alpha_width, alpha_height, alpha_bitmap, 0, "USR", 0, "ENTRY", 0, 0, 0, 0}, - {"7", 60, 250, 46, 26, WHITE, "7", 1, 0, 0, 0, 0, "SOLVE", 1, 0, 0, 0, 0, 0}, - {"8", 120, 250, 46, 26, WHITE, "8", 1, 0, 0, 0, 0, "PLOT", 1, 0, 0, 0, 0, 0}, - {"9", 180, 250, 46, 26, WHITE, "9", 1, 0, 0, 0, 0, "ALGEBRA", 1, 0, 0, 0, 0, 0}, - {"DIV", 240, 250, 46, 26, WHITE, 0, 0, div_width, div_height, div_bitmap, 0, "( )", 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, + .map = 0, + .down = 0, + .xwin = 0 }, + {"7", 60, 250, 46, 26, WHITE, "7", 1, 0, 0, 0, 0, "SOLVE", 1, 0, 0, 0, 0, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"SHL", 0, 300, 36, 26, LEFT, 0, 0, shl_width, shl_height, shl_bitmap, 0, 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, 0}, - {"5", 120, 300, 46, 26, WHITE, "5", 1, 0, 0, 0, 0, "STAT", 1, 0, 0, 0, 0, 0}, - {"6", 180, 300, 46, 26, WHITE, "6", 1, 0, 0, 0, 0, "UNITS", 1, 0, 0, 0, 0, 0}, - {"MUL", 240, 300, 46, 26, WHITE, 0, 0, mul_width, mul_height, mul_bitmap, 0, "[ ]", 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"SHR", 0, 350, 36, 26, RIGHT, 0, 0, shr_width, shr_height, shr_bitmap, 0, 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, 0}, - {"2", 120, 350, 46, 26, WHITE, "2", 1, 0, 0, 0, 0, "STACK", 0, "ARG", 0, 0, 0, 0}, - {"3", 180, 350, 46, 26, WHITE, "3", 1, 0, 0, 0, 0, "CMD", 0, "MENU", 0, 0, 0, 0}, - {"MINUS", 240, 350, 46, 26, WHITE, 0, 0, minus_width, minus_height, minus_bitmap, 0, "i", 0, "j", 0, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"ON", 0, 400, 36, 26, WHITE, "ON", 0, 0, 0, 0, 0, "CONT", 0, "OFF", "ATTN", 0, 0, 0}, - {"0", 60, 400, 46, 26, WHITE, "0", 1, 0, 0, 0, 0, "= ", 0, " a", 0, 0, 0, 0}, - {"PERIOD", 120, 400, 46, 26, WHITE, ".", 1, 0, 0, 0, 0, ", ", 0, " k", 0, 0, 0, 0}, - {"SPC", 180, 400, 46, 26, WHITE, "SPC", 0, 0, 0, 0, 0, "l ", 0, " m", 0, 0, 0, 0}, - {"PLUS", 240, 400, 46, 26, WHITE, 0, 0, plus_width, plus_height, plus_bitmap, 0, "{ }", 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", + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, }; static x11_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, 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, 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, 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, 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, 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, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"MTH", 0, 50, 36, 26, WHITE, "MTH", 0, 0, 0, 0, "G", "RAD", 0, "POLAR", 0, 0, 0, 0}, - {"PRG", 50, 50, 36, 26, WHITE, "PRG", 0, 0, 0, 0, "H", 0, 0, "CHARS", 0, 0, 0, 0}, - {"CST", 100, 50, 36, 26, WHITE, "CST", 0, 0, 0, 0, "I", 0, 0, "MODES", 0, 0, 0, 0}, - {"VAR", 150, 50, 36, 26, WHITE, "VAR", 0, 0, 0, 0, "J", 0, 0, "MEMORY", 0, 0, 0, 0}, - {"UP", 200, 50, 36, 26, WHITE, 0, 0, up_width, up_height, up_bitmap, "K", 0, 0, "STACK", 0, 0, 0, 0}, - {"NXT", 250, 50, 36, 26, WHITE, "NXT", 0, 0, 0, 0, "L", "PREV", 0, "MENU", 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 = "RAD", + .is_menu = 0, + .right = "POLAR", + .sub = 0, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"COLON", 0, 100, 36, 26, WHITE, 0, 0, colon_width, colon_height, colon_bitmap, "M", "UP", 0, "HOME", 0, 0, 0, 0}, - {"STO", 50, 100, 36, 26, WHITE, "STO", 0, 0, 0, 0, "N", "DEF", 0, "RCL", 0, 0, 0, 0}, - {"EVAL", 100, 100, 36, 26, WHITE, "EVAL", 0, 0, 0, 0, "O", "aNUM", 0, "UNDO", 0, 0, 0, 0}, - {"LEFT", 150, 100, 36, 26, WHITE, 0, 0, left_width, left_height, left_bitmap, "P", "PICTURE", 0, 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, 0}, - {"RIGHT", 250, 100, 36, 26, WHITE, 0, 0, right_width, right_height, right_bitmap, "R", "SWAP", 0, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"SIN", 0, 150, 36, 26, WHITE, "SIN", 0, 0, 0, 0, "S", "ASIN", 0, "b", 0, 0, 0, 0}, - {"COS", 50, 150, 36, 26, WHITE, "COS", 0, 0, 0, 0, "T", "ACOS", 0, "c", 0, 0, 0, 0}, - {"TAN", 100, 150, 36, 26, WHITE, "TAN", 0, 0, 0, 0, "U", "ATAN", 0, "d", 0, 0, 0, 0}, - {"SQRT", 150, 150, 36, 26, WHITE, 0, 0, sqrt_width, sqrt_height, sqrt_bitmap, "V", "n", 0, "o", 0, 0, 0, 0}, - {"POWER", 200, 150, 36, 26, WHITE, 0, 0, power_width, power_height, power_bitmap, "W", "p", 0, "LOG", 0, 0, 0, 0}, - {"INV", 250, 150, 36, 26, WHITE, 0, 0, inv_width, inv_height, inv_bitmap, "X", "q", 0, "LN", 0, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"ENTER", 0, 200, 86, 26, WHITE, "ENTER", 2, 0, 0, 0, 0, "EQUATION", 0, "MATRIX", 0, 0, 0, 0}, - {"NEG", 100, 200, 36, 26, WHITE, 0, 0, neg_width, neg_height, neg_bitmap, "Y", "EDIT", 0, "CMD", 0, 0, 0, 0}, - {"EEX", 150, 200, 36, 26, WHITE, "EEX", 0, 0, 0, 0, "Z", "PURG", 0, "ARG", 0, 0, 0, 0}, - {"DEL", 200, 200, 36, 26, WHITE, "DEL", 0, 0, 0, 0, 0, "CLEAR", 0, 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, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"ALPHA", 0, 250, 36, 26, WHITE, 0, 0, alpha_width, alpha_height, alpha_bitmap, 0, "USER", 0, "ENTRY", 0, 0, 0, 0}, - {"7", 60, 250, 46, 26, WHITE, "7", 1, 0, 0, 0, 0, 0, 1, "SOLVE", 0, 0, 0, 0}, - {"8", 120, 250, 46, 26, WHITE, "8", 1, 0, 0, 0, 0, 0, 1, "PLOT", 0, 0, 0, 0}, - {"9", 180, 250, 46, 26, WHITE, "9", 1, 0, 0, 0, 0, 0, 1, "SYMBOLIC", 0, 0, 0, 0}, - {"DIV", 240, 250, 46, 26, WHITE, 0, 0, div_width, div_height, div_bitmap, 0, "r ", 0, "s", 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 = "USER", + .is_menu = 0, + .right = "ENTRY", + .sub = 0, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"SHL", 0, 300, 36, 26, LEFT, 0, 0, shl_width, shl_height, shl_bitmap, 0, 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, 0}, - {"5", 120, 300, 46, 26, WHITE, "5", 1, 0, 0, 0, 0, 0, 1, "STAT", 0, 0, 0, 0}, - {"6", 180, 300, 46, 26, WHITE, "6", 1, 0, 0, 0, 0, 0, 1, "UNITS", 0, 0, 0, 0}, - {"MUL", 240, 300, 46, 26, WHITE, 0, 0, mul_width, mul_height, mul_bitmap, 0, "t ", 0, "u", 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"SHR", 0, 350, 36, 26, RIGHT, 0, 0, shr_width, shr_height, shr_bitmap, 0, 0, 1, " ", 0, 0, 0, 0}, - {"1", 60, 350, 46, 26, WHITE, "1", 1, 0, 0, 0, 0, 0, 1, "I/O", 0, 0, 0, 0}, - {"2", 120, 350, 46, 26, WHITE, "2", 1, 0, 0, 0, 0, 0, 1, "LIBRARY", 0, 0, 0, 0}, - {"3", 180, 350, 46, 26, WHITE, "3", 1, 0, 0, 0, 0, 0, 1, "EQ LIB", 0, 0, 0, 0}, - {"MINUS", 240, 350, 46, 26, WHITE, 0, 0, minus_width, minus_height, minus_bitmap, 0, "v ", 0, "w", 0, 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, - {"ON", 0, 400, 36, 26, WHITE, "ON", 0, 0, 0, 0, 0, "CONT", 0, "OFF", "CANCEL", 0, 0, 0}, - {"0", 60, 400, 46, 26, WHITE, "0", 1, 0, 0, 0, 0, "\004 ", 0, "\003", 0, 0, 0, 0}, - {"PERIOD", 120, 400, 46, 26, WHITE, ".", 1, 0, 0, 0, 0, "\002 ", 0, "\001", 0, 0, 0, 0}, - {"SPC", 180, 400, 46, 26, WHITE, "SPC", 0, 0, 0, 0, 0, "\005 ", 0, "z", 0, 0, 0, 0}, - {"PLUS", 240, 400, 46, 26, WHITE, 0, 0, plus_width, plus_height, plus_bitmap, 0, "x ", 0, "y", 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 = "CANCEL", + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 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, + .map = 0, + .down = 0, + .xwin = 0 }, + {"SPC", 180, 400, 46, 26, WHITE, "SPC", 0, 0, 0, 0, 0, "\005 ", 0, "z", 0, 0, 0, 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, + .map = 0, + .down = 0, + .xwin = 0 }, }; #define MAX_PASTE 128 @@ -502,38 +2354,38 @@ static unsigned char nibbles[ 16 ][ 2 ] = { static unsigned char nibble_bitmap[ 16 ]; static x11_ann_struct_t ann_tbl[] = { - {16, 4, ann_left_width, ann_left_height, ann_left_bitmap, 0}, - {61, 4, ann_right_width, ann_right_height, ann_right_bitmap, 0}, - {106, 4, ann_alpha_width, ann_alpha_height, ann_alpha_bitmap, 0}, - {151, 4, ann_battery_width, ann_battery_height, ann_battery_bitmap, 0}, - {196, 4, ann_busy_width, ann_busy_height, ann_busy_bitmap, 0}, - {241, 4, ann_io_width, ann_io_height, ann_io_bitmap, 0}, + {.x = 16, .y = 4, .width = ann_left_width, .height = ann_left_height, .bits = ann_left_bitmap, .pixmap = 0}, + {.x = 61, .y = 4, .width = ann_right_width, .height = ann_right_height, .bits = ann_right_bitmap, .pixmap = 0}, + {.x = 106, .y = 4, .width = ann_alpha_width, .height = ann_alpha_height, .bits = ann_alpha_bitmap, .pixmap = 0}, + {.x = 151, .y = 4, .width = ann_battery_width, .height = ann_battery_height, .bits = ann_battery_bitmap, .pixmap = 0}, + {.x = 196, .y = 4, .width = ann_busy_width, .height = ann_busy_height, .bits = ann_busy_bitmap, .pixmap = 0}, + {.x = 241, .y = 4, .width = ann_io_width, .height = ann_io_height, .bits = ann_io_bitmap, .pixmap = 0}, }; static icon_map_t icon_maps_sx[] = { - {hp48_icon_width, hp48_icon_height, BLACK, hp48_icon_bitmap }, - {hp48_on_width, hp48_on_height, PIXEL, hp48_on_bitmap }, - {hp48_disp_width, hp48_disp_height, LCD, hp48_disp_bitmap }, - {hp48_top_width, hp48_top_height, DISP_PAD, hp48_top_bitmap }, - {hp48_bottom_width, hp48_bottom_height, PAD, hp48_bottom_bitmap}, - {hp48_logo_width, hp48_logo_height, LOGO, hp48_logo_bitmap }, - {hp48_text_width, hp48_text_height, LABEL, hp48_text_bitmap }, - {hp48_keys_width, hp48_keys_height, BLACK, hp48_keys_bitmap }, - {hp48_orange_width, hp48_orange_height, LEFT, hp48_orange_bitmap}, - {hp48_blue_width, hp48_blue_height, RIGHT, hp48_blue_bitmap } + {.w = hp48_icon_width, .h = hp48_icon_height, .c = BLACK, .bits = hp48_icon_bitmap }, + {.w = hp48_on_width, .h = hp48_on_height, .c = PIXEL, .bits = hp48_on_bitmap }, + {.w = hp48_disp_width, .h = hp48_disp_height, .c = LCD, .bits = hp48_disp_bitmap }, + {.w = hp48_top_width, .h = hp48_top_height, .c = DISP_PAD, .bits = hp48_top_bitmap }, + {.w = hp48_bottom_width, .h = hp48_bottom_height, .c = PAD, .bits = hp48_bottom_bitmap}, + {.w = hp48_logo_width, .h = hp48_logo_height, .c = LOGO, .bits = hp48_logo_bitmap }, + {.w = hp48_text_width, .h = hp48_text_height, .c = LABEL, .bits = hp48_text_bitmap }, + {.w = hp48_keys_width, .h = hp48_keys_height, .c = BLACK, .bits = hp48_keys_bitmap }, + {.w = hp48_orange_width, .h = hp48_orange_height, .c = LEFT, .bits = hp48_orange_bitmap}, + {.w = hp48_blue_width, .h = hp48_blue_height, .c = RIGHT, .bits = hp48_blue_bitmap } }; static icon_map_t icon_maps_gx[] = { - {hp48_icon_width, hp48_icon_height, BLACK, hp48_icon_bitmap }, - {hp48_on_width, hp48_on_height, PIXEL, hp48_on_bitmap }, - {hp48_disp_width, hp48_disp_height, LCD, hp48_disp_bitmap }, - {hp48_top_gx_width, hp48_top_gx_height, DISP_PAD, hp48_top_gx_bitmap }, - {hp48_bottom_width, hp48_bottom_height, PAD, hp48_bottom_bitmap }, - {hp48_logo_gx_width, hp48_logo_gx_height, LOGO, hp48_logo_gx_bitmap }, - {hp48_text_gx_width, hp48_text_gx_height, LABEL, hp48_text_gx_bitmap }, - {hp48_keys_width, hp48_keys_height, BLACK, hp48_keys_bitmap }, - {hp48_orange_width, hp48_orange_height, LEFT, hp48_orange_bitmap }, - {hp48_green_gx_width, hp48_green_gx_height, RIGHT, hp48_green_gx_bitmap} + {.w = hp48_icon_width, .h = hp48_icon_height, .c = BLACK, .bits = hp48_icon_bitmap }, + {.w = hp48_on_width, .h = hp48_on_height, .c = PIXEL, .bits = hp48_on_bitmap }, + {.w = hp48_disp_width, .h = hp48_disp_height, .c = LCD, .bits = hp48_disp_bitmap }, + {.w = hp48_top_gx_width, .h = hp48_top_gx_height, .c = DISP_PAD, .bits = hp48_top_gx_bitmap }, + {.w = hp48_bottom_width, .h = hp48_bottom_height, .c = PAD, .bits = hp48_bottom_bitmap }, + {.w = hp48_logo_gx_width, .h = hp48_logo_gx_height, .c = LOGO, .bits = hp48_logo_gx_bitmap }, + {.w = hp48_text_gx_width, .h = hp48_text_gx_height, .c = LABEL, .bits = hp48_text_gx_bitmap }, + {.w = hp48_keys_width, .h = hp48_keys_height, .c = BLACK, .bits = hp48_keys_bitmap }, + {.w = hp48_orange_width, .h = hp48_orange_height, .c = LEFT, .bits = hp48_orange_bitmap }, + {.w = hp48_green_gx_width, .h = hp48_green_gx_height, .c = RIGHT, .bits = hp48_green_gx_bitmap} }; static int saved_argc;