Skip to content

Commit

Permalink
Further fixes for menus
Browse files Browse the repository at this point in the history
  • Loading branch information
dkgrizzly committed Apr 22, 2023
1 parent 2e4cd3b commit 0432d5e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

obj/
8 changes: 4 additions & 4 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions src/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 '-'
Expand Down

0 comments on commit 0432d5e

Please sign in to comment.