Further fixes for menus
This commit is contained in:
parent
2e4cd3bb47
commit
0432d5eba1
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
obj/
|
|
@ -1711,10 +1711,10 @@ void main (void) {
|
||||||
backdrop(PROGNAME);
|
backdrop(PROGNAME);
|
||||||
|
|
||||||
window(" Main Menu ", 26, 15, 0);
|
window(" Main Menu ", 26, 15, 0);
|
||||||
gotoy(y+5); gotox(8);
|
gotoy(y+4); gotox(7);
|
||||||
repeatchar(CHAR_BORDER_BOTTOM, 24);
|
repeatchar(CHAR_SEPARATOR, 26);
|
||||||
gotoy(y+10); gotox(8);
|
gotoy(y+9); gotox(7);
|
||||||
repeatchar(CHAR_BORDER_BOTTOM, 24);
|
repeatchar(CHAR_SEPARATOR, 26);
|
||||||
}
|
}
|
||||||
if(paint_menu) {
|
if(paint_menu) {
|
||||||
gotoy(y+0); gotox(8);
|
gotoy(y+0); gotox(8);
|
||||||
|
|
|
@ -186,8 +186,8 @@ void main (void) {
|
||||||
break;
|
break;
|
||||||
case MENU_SEPARATOR:
|
case MENU_SEPARATOR:
|
||||||
if(separator_allowed) {
|
if(separator_allowed) {
|
||||||
gotoy(window_top+y); gotox(8);
|
gotoy(window_top+y-1); gotox(8);
|
||||||
repeatchar(CHAR_BORDER_BOTTOM, 24);
|
repeatchar(CHAR_SEPARATOR, 24);
|
||||||
y++;
|
y++;
|
||||||
separator_allowed = 0;
|
separator_allowed = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#if defined(__APPLE2ENH__)
|
#if defined(__APPLE2ENH__)
|
||||||
#define CHAR_CURSOR 0x7F
|
#define CHAR_CURSOR 0x7F
|
||||||
|
#define CHAR_SEPARATOR '_'
|
||||||
#define CHAR_BAR_MIDDLE 0xD3
|
#define CHAR_BAR_MIDDLE 0xD3
|
||||||
#define CHAR_BORDER_BOTTOM 0xCC
|
#define CHAR_BORDER_BOTTOM 0xCC
|
||||||
#define CHAR_TITLEBAR_ENCLOSED 0xDC
|
#define CHAR_TITLEBAR_ENCLOSED 0xDC
|
||||||
|
@ -22,6 +23,7 @@
|
||||||
#define CHAR_BORDER_BOTTOM_RIGHT ' '
|
#define CHAR_BORDER_BOTTOM_RIGHT ' '
|
||||||
#else
|
#else
|
||||||
#define CHAR_CURSOR (' '|0x80)
|
#define CHAR_CURSOR (' '|0x80)
|
||||||
|
#define CHAR_SEPARATOR '_'
|
||||||
#define CHAR_BAR_MIDDLE '-'
|
#define CHAR_BAR_MIDDLE '-'
|
||||||
#define CHAR_BORDER_BOTTOM '-'
|
#define CHAR_BORDER_BOTTOM '-'
|
||||||
#define CHAR_TITLEBAR_ENCLOSED '-'
|
#define CHAR_TITLEBAR_ENCLOSED '-'
|
||||||
|
|
Loading…
Reference in New Issue