Ignacio R. Morelle
57ae45387a
New Year copyright update
2015-01-01 19:07:35 -03:00
gfgtdf
7e2f0e6c37
fix some includes
2014-10-23 01:15:23 +02:00
Boldizsár Lipka
9da0379edf
Blit marked-up text to black background.
...
Temporary fix to make menu items readable in SDL_gpu builds.
2014-08-19 20:43:26 +02:00
Boldizsár Lipka
cf5ac2bbb6
Add function draw_text_to_texture.
2014-07-22 18:53:36 +02:00
Alexander van Gessel
6b5f357b6e
Follow up the utf8 namespace with ucs4 and utf16 namespaces
2014-03-23 04:24:02 +01:00
Alexander van Gessel
b0d31d07e3
Merge branch 'wide_string_elimination'
...
Conflicts:
src/dialogs.cpp
src/gui/dialogs/addon_list.cpp
src/gui/widgets/password_box.cpp
src/gui/widgets/text.cpp
src/gui/widgets/text_box.cpp
src/marked-up_text.cpp
src/serialization/string_utils.cpp
src/serialization/string_utils.hpp
src/text.cpp
2014-03-23 03:46:01 +01:00
Alexander van Gessel
6318b37ffd
Get rid of utils::wide_string
...
utils::wide_string was a std::vector<wchar_t>
On most unix systems, this is 32 bits wide, and therefore a UCS-4 encoding.
On windows however, wchar_t is 16 bits wide, and the naive approach results
in UCS-2, which can only represent the Basic Multilingual Plane.
Most functions that used wide_string have been moved over to ucs4_string.
The Win32 API has been moved over to a specially created utf16_string instead.
Specialty tolower #ifdefs have been removed, as the towlower function has
been available since OS X 10.3, OpenBSD 3.7 and probably ancient versions of
all other BSDs too. The only issue is that on windows, the function cannot
be applied to characters outside the BMP.
2014-03-23 01:56:40 +01:00
aquileia
2f6a6a7d0e
move UTF-8 functions to a separate namespace
2014-03-22 20:57:01 +01:00
Ignacio R. Morelle
a4f47a63c7
New Year copyright update
2014-01-01 02:08:52 -03:00
Alexander van Gessel
6eb7e33731
Fix some uninitialized variables, replace by NULL
...
Found by coverity
2013-12-02 19:44:30 +01:00
fendrin
fa86e2e350
Fix some wrong spelling, mostly in comments.
2013-06-23 17:18:49 +02:00
Eric S. Raymond
043c4f9fd3
Remove $Id$ cookies.
2013-03-26 21:41:37 -04:00
Mark de Wever
43b71f2ff0
New year copyright update.
2013-01-01 09:22:03 +00:00
J. Tyne
160d1e8bc1
Sidebar enhancements to more clearly show active/inactive abilities...
...
...and specials.
2012-10-24 00:54:21 +00:00
Mark de Wever
59bcbff885
Remove duplicate condition in a logical or.
...
Issue found by cppcheck.
2012-04-22 13:52:23 +00:00
Mark de Wever
93a7733482
Remove duplicate condition in a logical or.
...
Issue found by cppcheck.
2012-04-08 08:12:00 +00:00
Ignacio R. Morelle
5ff7d902c9
campaignd: Simplify/move code...
...
...introduced in 2012-02-01T04:28:19Z!shadowm@wesnoth.org to a server-side-only code unit, making
a backport to 1.10 completely safe on the client side
Also, removed an accidental extra include.
2012-02-01 07:21:58 +00:00
Ignacio R. Morelle
a63bbbcfaf
Add some code comments
2012-02-01 04:37:44 +00:00
Ignacio R. Morelle
6ca69b2df5
New year copyright update
2012-01-07 02:35:17 +00:00
Mark de Wever
d3066dd4c3
Remove duplicate tests.
...
Issue discovered by cppcheck.
2011-11-20 18:51:53 +00:00
Mark de Wever
36a6cb268f
Remove duplicate tests.
...
Issue discovered by cppcheck.
2011-11-20 18:51:50 +00:00
Steven Panek
d085cd4a75
Cover the Kana Supplement block.
2011-10-14 17:08:29 +00:00
Steven Panek
553f02f47a
Don't break before the characters in the Katakana Phonetic Extensions plane.
2011-10-14 16:30:19 +00:00
Steven Panek
d1ddda11f6
Cover Yi Radicals and Yi Syllables.
...
The Yi script is lumped with the other CJKV stuff, the characters are
fullwidth, and so forth.
2011-10-14 16:05:29 +00:00
Steven Panek
af3773af49
Cover Katakana Phonetic Extensions too.
2011-10-14 15:03:49 +00:00
Steven Panek
42abf10144
Made an escaped character consistent with the others.
2011-10-14 14:41:27 +00:00
Steven Panek
7070f64d43
Cleansed parts of is_cjk_char.
...
Cover Hangul Jamo, Hangul Jamo Extended-A, Hangul Jamo Extended-B,
Bopomofo (for realz, this time), and Bopomofo Extended.
2011-10-14 14:36:33 +00:00
Mark de Wever
66800bbfbf
Remove an unused variable.
...
Fixes a g++ 4.6 warning.
2011-01-16 09:48:53 +00:00
Mark de Wever
ecbabea838
New year copyright update.
2011-01-01 15:57:50 +00:00
Guillaume Melquiond
eeb047de55
Fixed file headers so that they match the content of the COPYING file.
2010-09-01 21:12:38 +00:00
Ali El Gariani
371c159737
Add a shortcut for common non-CJK characters...
...
...(assuming compiler didn't guess it)
This also simplifies the reading of the CJK list.
2010-08-28 14:00:46 +00:00
Ali El Gariani
d0455e5f1e
Try to silence a Windows warning about patch #1140...
...
...(Fixed line wrap for CJK languages)
2010-08-28 14:00:31 +00:00
Ali El Gariani
6fe37a31ce
Red/green color damage in sidebar when modified by bonus/malus
...
Use clear red/green, as often suggested in forum about my screenshot.
A bit too flashy for my tastes, but let's make the new feature well
visible at first (also to get feedback from color-blind users)
2010-08-27 03:05:30 +00:00
Mark de Wever
a99c78e0d8
Update doxygen comment.
...
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Ali El Gariani
63a0b4e84d
Use en dash to separate range-damage type in unit preview,
...
...as requested by Espreon
2010-06-13 16:47:15 +00:00
Ali El Gariani
f34f526d39
Use en dash as separator between damage-hits, as requested by Espreon.
...
This use 2 more pixels, but looks more readable.
2010-06-06 18:33:19 +00:00
Ali El Gariani
e943cc3342
Define in one place the separators used for weapon stats...
...
...(8-3 and melee--blade)
2010-06-06 18:27:10 +00:00
Ali El Gariani
51ab72860e
Replace all uses of 'colour' by 'color' in code.
2010-06-03 01:47:06 +00:00
Ali El Gariani
f6fab3788f
Rename all SDL_Color font::FOO_COLOUR as font::FOO_COLOR
2010-06-02 22:14:44 +00:00
Ali El Gariani
8934cebdf1
Make more public an utility function generating pango color markup.
2010-06-02 22:01:37 +00:00
Ali El Gariani
f1f0d96e36
revert 2010-05-16T23:56:47Z!alinkmaze@gmail.com
...
(hack need too much little details to fix compared to a clean rewrite)
2010-05-18 13:30:50 +00:00
Ali El Gariani
e3b20d4272
Use Pango engine for rendering help.
...
Just add a new Pango style flag and use it to choose between SDL_TTF
or Pango. This allow to easily reuse all the old text functions (word
wrapping etc...) Pango markups are working but not yet allowed in cfg
(help chokes on it)
2010-05-16 23:56:47 +00:00
Ali El Gariani
a27644f564
use string instead of char as separator for utils::join()
2010-05-15 12:12:27 +00:00
Mark de Wever
92f5f92ce5
New year copyright update.
2010-01-01 13:16:49 +00:00
Guillaume Melquiond
05d3a3982e
Removed unused function nullify_markup.
2009-12-25 09:49:09 +00:00
Guillaume Melquiond
33ce127fe2
Made utils::escape/unescape not modify their argument.
2009-12-25 09:48:46 +00:00
Mark de Wever
cb63d0fd62
Remove an unneeded include.
2009-12-05 21:24:54 +00:00
Guillaume Melquiond
c4af7a2354
Fixed wrapping behavior at EOL when the last words are preceded...
...
...by a block of special text (e.g. italic).
2009-11-08 12:54:15 +00:00
Guillaume Melquiond
e6c20b46c3
Switched report generation to Pango markup.
2009-09-12 13:50:28 +00:00
Ali El Gariani
78983effa0
An attempt to make more clear the distinction between name,
...
...unit_type and race in unit sidebars.
Currently uses same colors and indentation as for weapon and its detail.
(for UI visual consistency and cuing importance hierarchy)
2009-09-07 18:48:05 +00:00