summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.cc
Commit message (Collapse)AuthorAgeFilesLines
* Chance function(void) to function()reaverb2014-05-241-7/+7
|
* Drop pointless empty lines after or before a brace.Adam Borowski2013-12-211-1/+0
| | | | | I left them only where the contents is not indented, like in a namespace or a template.
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Indentation fixes.Adam Borowski2013-12-041-25/+25
|
* Allow graceful shutdown rather than a forced save (win32 console).Adam Borowski2013-11-251-0/+22
| | | | | | This injects a fake key code into the input stream, making the syscall return. The pseudo-signal handler thread will then wait forever (for a value of "forever" of 15 seconds).
* More padding fixes for ternary operatorChris Oelmueller2013-08-031-1/+1
|
* Fix webtiles and win32c compilation.Adam Borowski2013-03-141-1/+1
|
* Remove unnecessary includes from header files.Jay3.14152012-10-231-0/+1
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Use std namespace.Raphael Langella2012-08-261-1/+1
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Some more return deparenthesization.Adam Borowski2012-07-051-2/+2
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-6/+6
|
* Unbreak Windows console builds.Adam Borowski2012-06-201-1/+0
| | | | | | It sabotaged ARRAYSZ(), for no reason. There was a conflict with an old MSVC header, but for ARRAYSIZE() not ARRAYSZ(), then after a sed job in 9ba57ee3 the #undef was unnecesarily kepy.
* Use ARRAYSZ() instead of sizeof division, for readability.Adam Borowski2012-06-191-1/+1
| | | | Also, it's not vulnerable to changes to the underlying types.
* Remove a good deal of header inclusion.Adam Borowski2012-05-231-1/+0
| | | | | | | | | These accumulate but never get removed; no wonder compilation times keep rising. The includes.sh script has lots of false negatives (and positives...), and can't check .h files which cause the biggest slowdown, it'd be nice to run multidelta on those somehow.
* Simplify and improve the startup menu layout (#5602).Raphael Langella2012-04-291-0/+5
| | | | | | | Logic is unified between console and tiles. We now use the full available size instead of leaving the last line for some reason. It should be relatively easy to make it respect tile_menu_icons = false, although I'm not sure it's worth bothering.
* Wrap some egregiously long lines in the source.Adam Borowski2012-03-281-4/+8
| | | | | While adhering religiously to the 80 column limit tends to be often pointless, 173 column long lines are way, way over the edge from the other side.
* Fail Windows webtiles builds with a descriptive error.Adam Borowski2011-12-141-2/+2
| | | | | Also, change a few #ifdefs to make it slightly easier to implement that in the future.
* Disable death and delays during fsim.Adam Borowski2011-12-141-0/+3
| | | | | | | If you somehow die, fsim would hang on a non-displayed prompt; delays would make a single run take a week spent in sleep(). Note that fsim is currently completely broken by UCC changes.
* Windows console: Add a few missing steps to console shutdownSamuel Bronson2011-12-101-1/+4
|
* Remove redundant platform specific display flushing.Adam Borowski2011-12-021-29/+0
| | | | It's already done in update_screen() anyway.
* Win32: Don't tromp over scrollback: use a fresh console screen buffer.Samuel Bronson2011-11-011-1/+21
| | | | Could maybe use some error checking ...
* Combine common parts of lib*.hAdam Borowski2011-09-081-13/+8
| | | | | Having different prototypes for different ports without a good reason is bad. After unification, it's easier to have, for example, two ports at once.
* Catch attempts to print out a character >U+FFFF on Windows.Adam Borowski2011-09-071-3/+7
|
* Gut and parcel out most of stuff.ccAdam Borowski2011-06-041-1/+0
|
* Handle SIGHUP in tiles and on Windows.Adam Borowski2011-05-011-1/+1
| | | | (Ok, ok, on Windows it's a ConsoleHandler but does basically the same).
* Hide output charset conversions behind a macro.Adam Borowski2011-04-181-2/+2
| | | | | | They're not that interesting and cloud code readability. What humans care about is the conversion of Crawl's internal format to native strings (OUTS) or native wide strings (OUTW, Windows only).
* Fix win64 compilation.Adam Borowski2011-04-081-3/+2
| | | | | BTW, what's the point of forcing architecture in the build? The compiler already knows that, trying to do that ourselves just caused build failures.
* Doxygenization and junk purging that was missed by my script.Adam Borowski2011-04-021-9/+7
|
* Don't rely on undocumented behaviour of ncursesw.Adam Borowski2011-04-021-1/+1
| | | | | The API doesn't provide a way to giveback a function key, so let's do our own giveback buffer.
* Merge branch 'unicode'.Adam Borowski2011-04-011-206/+30
|\ | | | | | | | | There are some issues left, like incorrect wrapping in some cases, but we can fix them later.
| * Unbreak arrow keys on win32 console.Adam Borowski2011-03-311-4/+4
| |
| * Input on win32 console.Adam Borowski2011-03-311-5/+5
| |
| * Get rid of remaining uses of putch().Adam Borowski2011-03-311-9/+0
| | | | | | | | One was actually wrong, too -- mangling redefined explosions.
| * Basic cursesw input.Adam Borowski2011-03-311-2/+2
| | | | | | | | No direction keys yet...
| * Merge branch 'master' into unicodeAdam Borowski2011-03-131-5/+5
| |\
| * \ Merge branch 'master' into unicodeAdam Borowski2010-11-091-1/+1
| |\ \
| * \ \ Merge branch 'master' into unicodeAdam Borowski2010-10-151-16/+16
| |\ \ \
| * | | | Remove an unused function, we don't do line input anymore.Adam Borowski2010-09-251-41/+0
| | | | |
| * | | | Implement Unicode support on win-console on output.Adam Borowski2010-09-251-34/+24
| | | | |
| * | | | Remove a bad unimplemented stub. Fortunately, it had a wrong prototype.Adam Borowski2010-09-191-6/+0
| | | | |
| * | | | Remove an unused (and unimplemented!) function.Adam Borowski2010-09-191-9/+0
| | | | |
| * | | | Handle filenames with non-ascii characters.Adam Borowski2010-09-171-102/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Only iostreams functions are left; on Windows they don't support Unicode so a workaround will be needed.
* | | | | Fix #3535: Buggy movement keys for Windows consoles.Johanna Ploog2011-03-201-6/+6
| |_|_|/ |/| | |
* | | | Bind Tab to autofight, shift-Tab to autofight_nomove.Adam Borowski2011-02-281-5/+5
| | | |
* | | | Give all ASSERT(false) proper messages.Adam Borowski2011-01-111-2/+1
| |_|/ |/| |
* | | Declare all the functions refixed with _ as staticRaphael Langella2010-10-271-1/+1
| |/ |/| | | | | I used a basic script to find them, so I probably missed a few
* | Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-28/+28
|/ | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* [1645] Fix messages_at_top drawing incorrectly.Enne Walker2010-05-301-3/+3
| | | | This was due to broken logic added in 575cfb8d.
* Refactor crawl view buffer.Enne Walker2010-05-301-6/+8
| | | | | | | 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.
* Implement textbackground() for Win console buildsJanne Lahdenpera2010-04-291-6/+11
| | | | Signed-off-by: Janne Lahdenpera <felirx@gmail.com>