From 1102d8fdc1e79ebbb2111a4a760d132cd59ad714 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 5 Dec 2009 12:04:56 +0000 Subject: [PATCH] Allow one more line to display --- menu.cpp | 2 +- menu_messages.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/menu.cpp b/menu.cpp index e343234..2dee181 100644 --- a/menu.cpp +++ b/menu.cpp @@ -101,7 +101,7 @@ void Menu::draw(SDL_Surface *where, int x, int y, int w, int h) int font_height = this->font->getHeight("X"); int line_height = (font_height + font_height / 4); int x_start = x; - int entries_visible = h / line_height - 2; + int entries_visible = h / line_height - 1; int start_entry_visible = 0; /* No messages - nothing to draw */ diff --git a/menu_messages.cpp b/menu_messages.cpp index 6390509..ca7b070 100644 --- a/menu_messages.cpp +++ b/menu_messages.cpp @@ -8,6 +8,7 @@ const char **exit_dialogue_messages = (const char*[]){ /*02*/ "#", /* Empty line */ /*03*/ "#", /*04*/ "#", + /*05*/ "#", /*06*/ "^|Yes|Cancel", NULL };