Further fixes for menus

This commit is contained in:
David Kuder 2023-04-21 22:50:00 -04:00
parent 2e4cd3bb47
commit 0432d5eba1
4 changed files with 10 additions and 6 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
obj/

View File

@ -1711,10 +1711,10 @@ void main (void) {
backdrop(PROGNAME);
window(" Main Menu ", 26, 15, 0);
gotoy(y+5); gotox(8);
repeatchar(CHAR_BORDER_BOTTOM, 24);
gotoy(y+10); gotox(8);
repeatchar(CHAR_BORDER_BOTTOM, 24);
gotoy(y+4); gotox(7);
repeatchar(CHAR_SEPARATOR, 26);
gotoy(y+9); gotox(7);
repeatchar(CHAR_SEPARATOR, 26);
}
if(paint_menu) {
gotoy(y+0); gotox(8);

View File

@ -186,8 +186,8 @@ void main (void) {
break;
case MENU_SEPARATOR:
if(separator_allowed) {
gotoy(window_top+y); gotox(8);
repeatchar(CHAR_BORDER_BOTTOM, 24);
gotoy(window_top+y-1); gotox(8);
repeatchar(CHAR_SEPARATOR, 24);
y++;
separator_allowed = 0;
}

View File

@ -3,6 +3,7 @@
#if defined(__APPLE2ENH__)
#define CHAR_CURSOR 0x7F
#define CHAR_SEPARATOR '_'
#define CHAR_BAR_MIDDLE 0xD3
#define CHAR_BORDER_BOTTOM 0xCC
#define CHAR_TITLEBAR_ENCLOSED 0xDC
@ -22,6 +23,7 @@
#define CHAR_BORDER_BOTTOM_RIGHT ' '
#else
#define CHAR_CURSOR (' '|0x80)
#define CHAR_SEPARATOR '_'
#define CHAR_BAR_MIDDLE '-'
#define CHAR_BORDER_BOTTOM '-'
#define CHAR_TITLEBAR_ENCLOSED '-'