summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-title.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-02-13 14:39:08 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-02-13 14:39:08 +0100
commit5a327252907b1a8fb35f19bf60d37391af465b52 (patch)
tree4fba4bc678271c26366405b2aaec0bf57a49f35e /crawl-ref/source/tilereg-title.cc
parent709ee15529a500d4abaa209cf786eeef5364063d (diff)
downloadcrawl-ref-5a327252907b1a8fb35f19bf60d37391af465b52.tar.gz
crawl-ref-5a327252907b1a8fb35f19bf60d37391af465b52.zip
Properly fix clicks counted twice.
Precision menu acts on mouse press now instead of mouse release. This fixes #3426. This reverts commit af62abd18c2e011fb9bf912e33374e7d78a2c733. This reverts commit 7a657cdb01a6fb74ff8cf8fcaeeb81d375a7bb04.
Diffstat (limited to 'crawl-ref/source/tilereg-title.cc')
-rw-r--r--crawl-ref/source/tilereg-title.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/crawl-ref/source/tilereg-title.cc b/crawl-ref/source/tilereg-title.cc
index 3da752dc23..9f23e5f179 100644
--- a/crawl-ref/source/tilereg-title.cc
+++ b/crawl-ref/source/tilereg-title.cc
@@ -10,7 +10,6 @@
#include "tilereg-title.h"
-#include "cio.h"
#include "files.h"
#include "libutil.h"
#include "macro.h"
@@ -56,7 +55,8 @@ void TitleRegion::render()
void TitleRegion::run()
{
- getch_ck();
+ mouse_control mc(MOUSE_MODE_MORE);
+ getchm();
}
/**
@@ -69,11 +69,4 @@ void TitleRegion::update_message(std::string message)
m_font_buf.add(message, VColour::white, 0, 0);
}
-int TitleRegion::handle_mouse(MouseEvent &event)
-{
- if (event.event == MouseEvent::RELEASE)
- return CK_MOUSE_CLICK;
- else
- return 0;
-}
#endif