summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-17 13:11:17 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-17 13:11:17 +0000
commita8855a831f9a789f19e2525962d0e5c4a8463a18 (patch)
tree0a2b9caa6732a4cfa392df0352649a6cfccdff1c /crawl-ref/source/libutil.h
parent39379c48505b14bfbe8ac8292e5938ad33d5989a (diff)
downloadcrawl-ref-a8855a831f9a789f19e2525962d0e5c4a8463a18.tar.gz
crawl-ref-a8855a831f9a789f19e2525962d0e5c4a8463a18.zip
An attempt at a more comprehensive fix for cursor inconsistencies between
platforms. We'll probably need to tweak this further. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@659 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r--crawl-ref/source/libutil.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h
index e14c65d206..f12618d7ca 100644
--- a/crawl-ref/source/libutil.h
+++ b/crawl-ref/source/libutil.h
@@ -159,14 +159,14 @@ enum KEYS
class cursor_control
{
public:
- cursor_control(bool cs)
- : cstate(cs), smartcstate( is_smart_cursor_enabled() )
+ cursor_control(bool cursor_enabled)
+ : cstate(is_cursor_enabled()), smartcstate(is_smart_cursor_enabled())
{
enable_smart_cursor(false);
- _setcursortype(cs? _NORMALCURSOR : _NOCURSOR);
+ set_cursor_enabled(cursor_enabled);
}
~cursor_control() {
- _setcursortype(cstate? _NOCURSOR : _NORMALCURSOR);
+ set_cursor_enabled(cstate);
enable_smart_cursor(smartcstate);
}
private: