diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-27 07:30:18 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-27 07:30:18 +0000 |
commit | 784109076e959d4ef6432035199c712b38f08dc1 (patch) | |
tree | ee5451578f48595ee04fd9414b40ec0f10366121 /crawl-ref/source/menu.cc | |
parent | d131ce057a429833e086b60cebeda46e062d07a1 (diff) | |
download | crawl-ref-784109076e959d4ef6432035199c712b38f08dc1.tar.gz crawl-ref-784109076e959d4ef6432035199c712b38f08dc1.zip |
Fixed hiding of draw_item() in derived classes of Menu.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@496 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r-- | crawl-ref/source/menu.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index 204ffc5b3a..7125555e7a 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -506,10 +506,10 @@ void Menu::draw_item( int index ) const return; gotoxy( 1, y_offset + index - first_entry ); - draw_item(index, items[index]); + draw_index_item(index, items[index]); } -void Menu::draw_item(int index, const MenuEntry *me) const +void Menu::draw_index_item(int index, const MenuEntry *me) const { if (f_drawitem) (*f_drawitem)(index, me); @@ -1221,7 +1221,7 @@ formatted_scroller::formatted_scroller(int _flags, const std::string& s) : } } -void formatted_scroller::draw_item(int index, const MenuEntry *me) const +void formatted_scroller::draw_index_item(int index, const MenuEntry *me) const { formatted_string::parse_string(me->text).display(); } |