57 Commits

Author SHA1 Message Date
Celtic Minstrel
3ac7f8d970 NULL -> nullptr
A few cases of NULL were missed, since changing them led to errors
(Mainly instances where it was passed to a boost::function)
2016-03-31 00:42:38 -04:00
Chris Beck
ba51524f6e update copyright to year 2016
using this shell script:

find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Andreas Löf
da98c62d4f Bug #23908 - Don't hold copies of the window surface
Change more copies of the window surface to be references
instead. This will make sure they do not contain a stale version that
has a pointer that points to freed memory.
2015-10-14 23:00:43 +13:00
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
cf5ac2bbb6 Add function draw_text_to_texture. 2014-07-22 18:53:36 +02:00
Alexander van Gessel
1aad7f9d45 Move unicode support to its own file 2014-03-24 00:24:21 +01: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
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
Ignacio R. Morelle
a4f47a63c7 New Year copyright update 2014-01-01 02:08:52 -03:00
Ignacio R. Morelle
f04278de61 Doxygen comment fixes 2013-08-18 00:00:05 -04: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
Ignacio R. Morelle
4282b64c43 Remove declaration of an external that isn't defined anywhere 2012-05-19 20:01:40 +00:00
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Mark de Wever
dcc43a996a Several comment additions and fixes.
Part of some pathes provided by zaroth.
2011-04-09 20:25:22 +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
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
159a4e9ce2 Simplify header dependency 2010-06-14 15:02:45 +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
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
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
Ali El Gariani
8cfc56a9f0 move some repeated hardcoded color values to one place 2009-09-07 18:25:16 +00:00
Guillaume Melquiond
258342d55d Removed unused function font::text_to_lines. 2009-08-15 12:01:07 +00:00
Ali El Gariani
ef1ecc2785 Apply patch #1140 (Fixed line wrap for CJK languages) from sylecn 2009-03-28 23:03:46 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Mark de Wever
818ba3f70d Update doxygen comment style. 2008-10-30 16:37:01 +00:00
Tomasz Śniatowski
65b1f7bdce add missing #include that only by accident didn't break building so far 2008-07-04 14:04:06 +01:00
Ali El Gariani
ad221ad063 Allow to use wesnoth markup characters in floating labels and tooltips.
This give possibility to use bold titles for tootlips, use bold,
italic and size fonts for map labels, change colors (currently too
powefull since it allow to write labels in the other team colors). Can
also be used to color messages like "poisoned" or "slowed"

PS: Please don't start to use this in WML, it's WIP.
2008-07-01 12:18:35 +00:00
Ali El Gariani
d0cda2dca7 Replace a wrapper function used for every line of text
by a wrapper function used for a block of text containing these lines
2008-06-25 19:55:50 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Patrick Parker
c07d52b61a [[miscellaneous engine fixes]]
-fix del_tags to span multiple lines

-new method nullify_markup to display error messages containing '#else', etc

-fix an iterator redefinition in the animation code

-add lots of global std namespace fixes for MSVC
2008-01-05 15:34:00 +00:00
Hans Joachim Gurt
94c44325bc Doxygen, comments 2007-09-01 03:35:09 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Ali El Gariani
a6bfb71f41 use the standard XP and HP colors (same as sidebar) in the unit list
...and by reusing more code, we also have now AMLA colors.

add a new function "color to markup" and use it for this
2007-08-23 23:31:20 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Hans Joachim Gurt
07c92f7ee8 Colors for unitlist.
Highlight leader, HP, XP, location, movement in
red/yellow/green.\nStatus-column for slowed, poisoned etc.
2007-08-12 02:08:44 +00:00