OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../grub/no-menu-border.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- g/stage2/stage2.c.orig 2005-03-19 18:51:57.000000000 +0100
  17. +++ g/stage2/stage2.c 2005-05-23 23:59:20.000000000 +0200
  18. @@ -97,7 +97,7 @@
  19. static void
  20. print_entry (int y, int highlight, char *entry)
  21. {
  22. - int x;
  23. + int x; int t = 0;
  24. if (current_term->setcolorstate)
  25. current_term->setcolorstate (COLOR_STATE_NORMAL);
  26. @@ -116,10 +116,14 @@
  27. else
  28. grub_putchar (*entry++);
  29. }
  30. - else
  31. + else {
  32. grub_putchar (' ');
  33. + if (!t && current_term->setcolorstate)
  34. + current_term->setcolorstate (COLOR_STATE_NORMAL);
  35. + t = 1;
  36. + }
  37. }
  38. - gotoxy (74, y);
  39. + gotoxy (2, y);
  40. if (current_term->setcolorstate)
  41. current_term->setcolorstate (COLOR_STATE_STANDARD);
  42. @@ -158,7 +162,7 @@
  43. else
  44. grub_putchar (' ');
  45. - gotoxy (74, y + entryno + 1);
  46. + gotoxy (2, y + entryno + 1);
  47. }
  48. static void
  49. @@ -302,7 +307,8 @@
  50. if (current_term->flags & TERM_DUMB)
  51. print_entries_raw (num_entries, first_entry, menu_entries);
  52. else
  53. - print_border (3, 12);
  54. + /*print_border (3, 12);*/
  55. + gotoxy (74, 3 + 12);
  56. grub_printf ("\n\
  57. Use the %c and %c keys to select which entry is highlighted.\n",
  58. @@ -361,7 +367,7 @@
  59. gotoxy (3, 22);
  60. grub_printf ("The highlighted entry will be booted automatically in %d seconds. ",
  61. grub_timeout);
  62. - gotoxy (74, 4 + entryno);
  63. + gotoxy (2, 4 + entryno);
  64. }
  65. grub_timeout--;