diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-09-05 08:56:03 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-09-05 10:12:56 +0200 |
commit | f07c2355e9784425d99a62335927de80be00fff4 (patch) | |
tree | 79f0060acde0f035c832e0073e2b83af06dfc20f /crawl-ref/source/cio.cc | |
parent | d8051c6f31ef3369827b6eaa4a6ccaaa72a8086e (diff) | |
download | crawl-ref-f07c2355e9784425d99a62335927de80be00fff4.tar.gz crawl-ref-f07c2355e9784425d99a62335927de80be00fff4.zip |
View coordinates now relative to viewport, not screen.
Also name some bounds checking functions less terribly and move to
viewgeom, and add new screen<->grid transforms.
Fixes issue #2215 (Fedhas targeting with messages_at_top) and is
likely to reduce the chance of future breakage with messages_at_top.
Also likely to introduce bugs.
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r-- | crawl-ref/source/cio.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc index 1673dc3783..3663501111 100644 --- a/crawl-ref/source/cio.cc +++ b/crawl-ref/source/cio.cc @@ -139,7 +139,7 @@ void cursorxy(int x, int y) { #if defined(USE_TILE) coord_def ep(x, y); - coord_def gc = view2grid(ep); + coord_def gc = crawl_view.screen2grid(ep); tiles.place_cursor(CURSOR_MOUSE, gc); #elif defined(UNIX) if (Options.use_fake_cursor) |