summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewgeom.h
Commit message (Collapse)AuthorAgeFilesLines
* More formatting fixes for return (...);Neil Moore2013-11-151-2/+2
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-8/+8
|
* Make inline functions static.Adam Borowski2012-08-091-8/+8
| | | | | | | | | This avoids unnecessary non-inlined copies. Also, we had a few large functions that had no reason for inlining, let's have them be regular ones. I also made "static inline" always use the same order, for easier grepping.
* Remove parentheses around return (simple_function_call).Adam Borowski2012-07-051-2/+2
| | | | For way too paranoid and underinclusive values of "simple".
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-2/+2
|
* Fix glyph truncation on platforms with 16 bit wchar_t.Adam Borowski2011-09-071-1/+1
| | | | This can matter only for cygwin, though.
* Remove the hack to render the whole map into craw_view.vbuf.Florian Diebold2011-06-261-8/+0
| | | | | Instead, the cells not in crawl_view.vbuf are now rendered in load_dungeon.
* Render and send the whole map.Florian Diebold2011-06-261-0/+8
|
* Move rendering logic to the client, make it more complete.Florian Diebold2011-06-261-1/+1
|
* Merge branch 'master' into unicodeAdam Borowski2011-01-111-2/+3
|\ | | | | | | Conflicts galore...
| * Re-implement certain tile flags as packed_cell struct members. (Tiles)Jude Brown2011-01-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, viewgeom.h:struct_cell_t contained tile_fg and tile_bg members. These were modified in tileview.cc:tile_apply_properties and view.cc:viewwindow. Whenever a silenced, haloed, bloody or moldy area was encountered, TILE_FLAG_x was OR'd into the tile_bg. This functionality was perfect only until the tile_flags enum stayed within the bounds of a 32 bit unsigned integer. We've now reached the limit of tile_flags, so any further interaction would either have to be done in the buffer (which would add more dependency on the game state to the tiles code, which we're trying to avoid), or have more attributes added into screen_cell_t and tilegdnbuf.h:packed_cell. Hence, I went with the latter option: extend screen_cell_t to contained boolean flags for silence, halo, etc. Instead of having to add new members to screen_cell_t *and* packed_cell, I instead added a packed_cell into screen_cell_t. And it works now, hooray!
* | Always use Unicode values for glyphs. Always use ncursesw on Unix console.Adam Borowski2010-09-261-3/+3
|/ | | | | | | | | | | | CSET_IBM and CSET_DEC are now merely presets and don't change the I/O encoding. Doing I/O using any encoding other than the one configured using LANG/LC_* is just wrong and no well-behaving program should do that. This does require changes on CAO/CDO, but they would fix problems with ttyrec and spectating as well. To fix: ncursesw replaces unrepresentable characters with spaces, we'll have to replace them by hand.
* Fix viewport shift by (1,1).Robert Vollmert2010-09-041-6/+6
|
* View coordinates now relative to viewport, not screen.Robert Vollmert2010-09-051-17/+45
| | | | | | | | | | 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.
* Use the crawl_view coordinate transformations in some places.Robert Vollmert2010-09-051-1/+1
|
* Make coordinate transformations members of crawl_view.Robert Vollmert2010-09-051-7/+37
|
* Remove some unused coordinate tranformations.Robert Vollmert2010-09-051-20/+0
|
* Support flash_view() in tiles mode.Enne Walker2010-06-151-0/+1
|
* Refactor crawl view buffer.Enne Walker2010-05-301-3/+22
| | | | | | | Rather than using explicit offsets (e.g. buffy[0] and buffy[1]), store colour, glyph, and tiles for each cell in the view buffer in a struct with named members. This refactoring will also theoretically allow for the tiles version to display glyphs instead of tiles.
* Make tiles use viewwindow for 'X' map display.Enne Walker2010-02-231-0/+2
| | | | | | This eliminates a duplicate function that had gotten out of sync with the original viewwindow. (In particular, this fixes a bug where using X in the Abyss would show out of sight tiles and the presence of items.)
* Fix newlines at end of file.Adam Borowski2010-01-211-3/+0
|
* Make tiles and non-tiles use the "same" screen_buffer_t buffy.Robert Vollmert2009-11-131-22/+7
| | | | This change also gets rid of the ugly intermediate macroing.
* Generalize crawl_view_buffer to also handle the tile buffers.Robert Vollmert2009-11-131-7/+22
| | | | Also make view.cc use crawl_view_geometry.tbuf for tiles drawing.
* Split up view.cc.Robert Vollmert2009-11-041-0/+145