summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
Commit message (Collapse)AuthorAgeFilesLines
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-1/+1
|
* Rename WM_* to WME_*, because Windows.Adam Borowski2013-01-201-1/+1
| | | | | It's a bad idea to reuse the names of one of core win32 concepts for something similar but distinct.
* Drop a bunch of parentheses from return statements.Adam Borowski2012-08-081-1/+1
| | | | | This is incomplete, partially because of me getting bored, partially because of doubts about the point of leaving simple addition/etc in parentheses.
* Some more return deparenthesization.Adam Borowski2012-07-051-2/+2
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-2/+2
|
* 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.
* 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.
* Combine common parts of lib*.hAdam Borowski2011-09-081-13/+23
| | | | | 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.
* Get rid of strlwr().Adam Borowski2011-09-071-14/+0
| | | | | | Besides being non-standard and present only on some platforms, it cannot be extended to Unicode as some characters expand or contract while being upper/lowercased.
* First prototype of webtiles.Florian Diebold2011-06-261-2/+2
| | | | | | Conflicts: crawl-ref/source/startup.cc
* Gut and parcel out most of stuff.ccAdam Borowski2011-06-041-1/+0
|
* Get rid of itoa().Adam Borowski2011-05-011-38/+0
| | | | Even worse, it had two redundant implementations.
* 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.
* Fix display corruption in some cases.Adam Borowski2011-04-021-0/+2
|
* Merge branch 'unicode'.Adam Borowski2011-04-011-24/+5
|\ | | | | | | | | There are some issues left, like incorrect wrapping in some cases, but we can fix them later.
| * Get rid of remaining uses of putch().Adam Borowski2011-03-311-7/+0
| | | | | | | | One was actually wrong, too -- mangling redefined explosions.
| * Basic cursesw input.Adam Borowski2011-03-311-2/+2
| | | | | | | | No direction keys yet...
| * Let tiles output our UTF-8 encoded strings -- only the ISO-8859-1 subset for ↵Adam Borowski2010-09-271-11/+4
| | | | | | | | | | | | now. Word wrapping is yet to be corrected, just like in other UIs.
| * Remove an unused (and unimplemented!) function.Adam Borowski2010-09-191-5/+0
| |
* | Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
|/ | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Split up tiles.h.Enne Walker2010-05-301-18/+0
| | | | | | Most of it has gone into tilepick.h, but also into enum.h and initfile.cc. Unlike tiles.h which was included everywhere, tilepick.h is now only a dependency of about half the files.
* Use tileidx_t for tile indices. Also, cleanup.Enne Walker2010-05-301-5/+4
| | | | | | | | This new type defines to unsigned int, but it cleans up a lot of the int/unsigned int/short confusion all over the codebase for tile indices. This commit also cleans up tiles code to use coord_def more and to change function signatures to pass const refs and non-const pointers.
* Get rid of get_input_line.Robert Vollmert2010-05-151-115/+0
| | | | It's not used anymore, and was buggy on windows console.
* Split tilereg.h/cc into multiple files.Enne Walker2010-04-251-1/+1
| | | | | No functional changes, just rearranging and exposing functions where needed.
* Don't allow event_count to return a negative.Enne Walker2010-04-241-3/+1
| | | | | If SDL considers -1 to be an error, just handle that internally and don't pollute the API with that.
* Removed tilesdl.h dep in libgui.Ixtli2010-04-241-1/+0
|
* More refactoring to reflect UIWrapper -> WindowManager change.Ixtli2010-04-241-1/+1
|
* Changed uiwrapper filenames.Ixtli2010-04-241-6/+1
|
* Renamed UIWrapper ABC to WindowManager and instantiation to 'wm'.Ixtli2010-04-241-2/+2
|
* Modified uiwrapper to be an abstract base class.Ixtli2010-04-241-2/+2
| | | | | SDL calls are now done from a specific subclass called SDLWrapper and the global UIWrapper variable is now a pointer.
* Fixed -h file names referring to specific implementations.Ixtli2010-04-241-1/+2
| | | | | The makefile should now name the .o's based on what libraries you're using, as well.
* UIWrapper camelCase to underscores_as_spacesIxtli2010-04-241-2/+2
|
* Added uiwrapper getEventCount and UIDelay, and applied them in libui.ccIxtli2010-04-241-8/+5
|
* Fix unchecked sprintf(..., "%s") and sscanf(..., "%s").Adam Borowski2010-03-201-1/+1
| | | | | Worst places seem to be running Crawl in a directory with a long name, and browsing corrupted dolls.
* Initialize crawl_view.termsz in tiles.Robert Vollmert2010-01-251-0/+3
| | | | | | | Setting it to 80x24 -- tiles experts should correct this if inappropriate. This fixes issue #556.
* Implement cgetpos for tiles.Robert Vollmert2010-01-201-0/+6
| | | | Untested since I can't compile tiles here...
* Merge branch 'master' into messagewindowRobert Vollmert2010-01-181-2/+0
|\
| * Trim unnecessary #includes.Adam Borowski2010-01-131-2/+0
| |
* | Merge branch 'master' into messagewindowRobert Vollmert2010-01-041-0/+5
|\| | | | | | | | | | | Conflicts: crawl-ref/source/libgui.cc crawl-ref/source/libgui.h
| * [212] Fixing prompts clearing screen in tiles.Enne Walker2010-01-031-0/+5
| | | | | | | | | | | | | | The line reader was always switching back to GOTO_CRT. When receiving input from the message window, this ended up causing the screen to blank and switch to the CRT layer. Adding a function get the current cursor region allows the line reader to not change regions.
* | Merge branch 'master' into messagewindowRobert Vollmert2009-12-151-1/+2
|\| | | | | | | | | | | | | Conflicts: crawl-ref/source/libgui.cc crawl-ref/source/libgui.h crawl-ref/source/message.cc
| * tiles: only include tiledef-*.h in files where they're neededSteven Noonan2009-12-121-0/+1
| | | | | | | | | | | | | | This eliminates the annoying full rebuild that happens when the tiledefs are modified. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
| * cgotoxy now takes GotoRegion instead of int.Robert Vollmert2009-12-101-1/+1
| |
* | Remove message window handling from lib*.{cc,h}Robert Vollmert2009-12-071-10/+0
|/ | | | They haven't been remimplemented outside these yet.
* Fix tiles compile (missing includes).Robert Vollmert2009-11-271-0/+1
|
* Fix tiles compile.Robert Vollmert2009-11-261-1/+1
|
* Simplify scrolling handling in message_out.Robert Vollmert2009-11-261-2/+2
| | | | | | | | | | The newline parameter to message_out is gone. Instead, a pointer to the message line is passed which may lie outside the message window. The window is then scrolled to make that line the last line. This also updates libnonunix.cc, but I haven't been able to test those changes.
* Remove unused call to get_show_symbol.Robert Vollmert2009-11-151-4/+0
|
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.