diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-16 22:27:17 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-16 22:27:17 +0200 |
commit | 7e4a16d5bd7991abfef63f37e42ac9ac0973c206 (patch) | |
tree | d8c7327a57c51070025787f14f87ddb3e68b98bd /crawl-ref/source/libutil.cc | |
parent | df290d7717362de9976c1fa27b67d57af58cf271 (diff) | |
download | crawl-ref-7e4a16d5bd7991abfef63f37e42ac9ac0973c206.tar.gz crawl-ref-7e4a16d5bd7991abfef63f37e42ac9ac0973c206.zip |
Weak-ass text popup for --help on Windows tiles.
It uses MessageBoxW() which has two flaws:
* you can't copy&paste text
* columns are badly misaligned
I guess the former is what Windows users are already used to, but the latter
looks abysmal.
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r-- | crawl-ref/source/libutil.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index 87560d1e53..2a3aaaea72 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -1142,6 +1142,10 @@ void init_signals() SetConsoleCtrlHandler(console_handler, true); } +void text_popup(const std::string& text, const wchar_t *caption) +{ + MessageBoxW(0, OUTW(text), caption, MB_OK); +} #else /* [ds] This SIGHUP handling is primitive and far from safe, but it |