Commit graph

2322 commits

Author SHA1 Message Date
Nils Kneuper
d985b47521 updated Czech translation 2017-01-06 19:01:09 +01:00
Nils Kneuper
d0cdeab469 updated German translation 2016-12-30 10:09:05 +01:00
Nils Kneuper
61e562fd28 updated Finnish translation 2016-10-17 23:55:58 +02:00
Nils Kneuper
45ede4d6cf updated Scottish Gaelic translation 2016-07-27 18:59:15 +02:00
Nils Kneuper
efc2c629ab updated Polish translation 2016-06-26 12:32:13 +02:00
Ignacio R. Morelle
3be79d093e Bump version 2016-05-17 21:25:07 -04:00
Ignacio R. Morelle
8718cd3d6f Line-wrap the changelogs 2016-05-17 20:57:46 -04:00
Ignacio R. Morelle
ab913c5996 Version 1.12.6 2016-05-17 20:33:51 -04:00
Ignacio R. Morelle
f55ab13102 Changelogs 2016-05-17 20:22:49 -04:00
Ignacio R. Morelle
80993dd1ed Fix LoW's changelog entries for gfgtdf 2016-05-17 17:43:27 -04:00
Ignacio R. Morelle
321010ca5e Fix ToD schedule progress label overlapping other items on low resolutions
Specifically, on vertical resolutions < 600 px.
2016-05-17 05:59:59 -04:00
Ignacio R. Morelle
f17a2f1fcf Sync highly user-relevant changelog entry to players_changelog 2016-05-17 05:31:35 -04:00
Ignacio R. Morelle
1a76f3b0ff Fix Observers icon overlapping other elements on low resolutions (bug #24455)
More specifically, horizontal resolutions less than 1024 px.
2016-05-17 05:05:29 -04:00
Randypk
300a814032 BugFix#: 23117 Remove filter_lobby check from game_matches_filter function and check before calling game_matches_filter.
Only apply filters when the apply_filter checkbox is selected, else
display all games.
2016-05-16 17:19:49 -04:00
Ignacio R. Morelle
e3970e8cb4 gui: Fix theme UI buttons missing icons or toggle state upon recreation
This is a blanket fix for the issue I previously tried to fix for
specific cases in the following two commits:

 * 1df73b9e4c Call display::draw() before setting theme UI button states
 * f93b439e13 Call set_button_state() from playsingle_controller::init_gui()

This final version of the fix is far superior as it doesn't involve
sloppy guesswork regarding the various display class redraw methods and
their call sites. Instead, we just copy the previous state for each
button during reconstruction regardless of the situation at hand. We
know they are the right buttons because they have the same id strings.

It is a little more involved than I would've liked because it has to
deal with a quirk in gui::button's implementation that becomes more
evident with this fix. The following primarily applies to
gui::button::load_images():

gui::button generates its own built-in image size filename suffix for
the button overlays and frames when the button dimensions are already
known, usually after a method call that sets the button's geometry with
a valid size (i.e. not -1234 x -1234). button::set_overlay() happens to
be such a method, but not all buttons use it to set their initial
overlay, and that's where trouble begins...

 * Some theme UI buttons (mostly in the editor, and the Draw Terrains
   and Draw Units toggles on the minimap area in-game) have their
   overlay icon paths set in the WML, including their _25 size suffix.
   These have their overlays (and frames) set initially set by the
   gui::button ctor, which loads the images and figures out the button
   dimensions in the process (via button::load_images()). The ctor
   always does this unconditionally.

 * At that time, button::load_images() will not add an engine-defined
   suffix because the button dimensions are still unknown until it
   finishes. The images are loaded successfully.

 * Subsequent calls to button::set_overlay() *with the same path* will
   have button::load_images() append its own suffix determined from the
   previously determined button dimensions. Hilarity ensues.

The hotkeys engine (via hotkey::command_executor::set_button_state())
and the theme WML have different notions of which button icons have a
suffix defined externally to gui::button. This results in situations
where restoring the previous icons in display::create_buttons() causes
gui::button to look for inexistent images with duplicate size suffixes
("_25_25"). Although modifying the mainline WML to avoid using those
suffixes in the first place would be the most elegant solution, it also
has the potential to cause issues with UMC themes (esp. forks of the
mainine themes), even if those are relatively rare. Moreover, it counts
as a violation of the stable branch ban on API changes.

In other words, even if this part of the fix is very ugly, it's
ultimately necessary if we are to fix the original bug in a stable
branch without breaking the theme WML API contract. This is also why
everything is in a single commit instead of split in two.

Also note that the aforementioned commits aren't fully obsolete; the
most recent one is actually still required so that the hotkeys engine
gets to set the button icon overlays at least once (for those buttons
which don't have this defined by WML) before running WML events. Any
redundancy arising from keeping them wouldn't hurt anyway.

Finally, all this has been rendered irrelevant in master by Aginor's
refactoring and bug fixes, so this code is a technological dead end
anyway.
2016-05-16 06:15:10 -04:00
Nils Kneuper
3d904a3ae7 updated Spanish translation 2016-05-16 11:43:17 +02:00
Nils Kneuper
1c49010534 updated Japanese translation 2016-05-14 14:59:39 +02:00
Nils Kneuper
3bd03e91cb updated Portuguese translation 2016-05-11 23:10:02 +02:00
Nils Kneuper
aef6c90340 updated British English translation 2016-05-10 18:32:34 +02:00
Nils Kneuper
314d40f0b1 updated Scottish Gaelic translation 2016-05-10 18:30:51 +02:00
Nils Kneuper
0ada482f55 updated Swedish translation 2016-01-09 11:21:26 +01:00
Nils Kneuper
231ebb400d updated Russian translation 2016-01-01 11:08:14 +01:00
Nils Kneuper
6ae013486f updated Slovak translation 2015-11-15 10:55:13 +01:00
Nils Kneuper
25349b6842 updated Galician translation 2015-11-07 10:09:44 +01:00
Nils Kneuper
804993cff2 updated RACV translation 2015-11-06 23:40:55 +01:00
Nils Kneuper
431a89ed40 Italian 2015-11-06 23:38:51 +01:00
Ignacio R. Morelle
567d4ac916 Update changelogs with missing items from RELEASE_NOTES
Missed the release but whatever.
2015-11-06 05:02:52 -03:00
Ignacio R. Morelle
437bd79dbb Bump version 2015-11-05 22:06:47 -03:00
Ignacio R. Morelle
1ce2ee82e8 Version 1.12.5 2015-11-05 21:37:04 -03:00
Ignacio R. Morelle
6be88bea57 Update players_changelog 2015-11-05 20:30:36 -03:00
Nils Kneuper
b2d7e9a179 updated Portuguese translation 2015-11-04 21:34:59 +01:00
ln-zookeeper
2212e7cecd Added the EI Captured fix to RELEASE_NOTES and players_changelog too 2015-11-01 20:14:57 +02:00
Nils Kneuper
80cb21dbb2 updated British English translation 2015-11-01 10:37:50 +01:00
Nils Kneuper
fdf20cf520 updated Spanish translation 2015-11-01 10:35:56 +01:00
Nils Kneuper
f4dca84208 updated Scottish Gaelic translation 2015-11-01 10:33:57 +01:00
Nils Kneuper
947266de18 updated Polish translation 2015-10-27 18:38:45 +01:00
Wedge009
8365d0e2ee Fixed broken Oasis terrain help entry (bug #23023) 2015-10-27 21:26:32 +11:00
Nils Kneuper
c26f98e926 updated Hungarian translation 2015-09-16 22:18:46 +02:00
ln-zookeeper
a6c4084c24 Updated changelogs and RELEASE_NOTES 2015-09-09 11:28:54 +03:00
Ignacio R. Morelle
352a432171 i18n: Skip and warn about textdomain names with a slash (bug #23839)
boost::locale::generator::add_messages_domain() interprets the slash
specially, interpreting everything after it as an encoding name.

It's not clear to me why providing a textdomain with an erroneous name
like this causes Boost.Locale to throw a boost::locale::conv exception
(invalid_charset_error, apparently) when handling t_strings bound to
completely different textdomain, but if we can avoid the issue
altogether then that's good enough.

Made the legacy implementation skip and warn about these names too even
if bindtextdomain(3) says nothing about slashes having a meaning.
2015-08-31 21:58:38 -03:00
Nils Kneuper
cc304dc41c updated Japanese translation 2015-08-29 10:41:42 +02:00
Nils Kneuper
981dc8f623 updated French translation 2015-08-22 13:00:16 +02:00
Ignacio R. Morelle
cfb1f8e098 font: Provide our own fontconfig settings (bug #20337)
Due to an unfortunate combination of Cairo's use of premultiplied alpha
and our engine expecting to be able to blit pre-rasterized text surfaces
with an alpha channel into arbitrary surfaces, we can't safely use RGB
subpixel hinting without getting glyph color glitches. This is
particularly noticeable in GUI2 dialogs when the system fontconfig
settings dictate subpixel hinting to be enabled. Bug #21648 is just a
Windows-specific case of the same issue exacerbated by an as of yet
unaddressed peculiarity of Cairo's premultiplied alpha format on
Windows.

SDL_ttf avoids the issue entirely by always using an equivalent of
hintstyle=full and rgba=none with FreeType directly. There are very few
UI components in Wesnoth using SDL_ttf anymore, but they are still large
enough to make the rendering differences rather jarring (MP lobby,
preferences dialog, parts of the theme UI).

Our new custom fontconfig settings use hintstyle=full and rgba=none to
produce the same results with both SDL_ttf and Pango/Cairo render paths,
and eliminate the subpixel hinting glitches. This Works For Me™, but
fontconfig and Cairo generally seem unwilling to cooperate with me and
may produce different results on other systems.

It remains to be seen exactly how this patch impacts Apple OS X users
due to bugs #23560 and #23628. Windows users are unaffected and still
depend on the "fix" for #21648 because fontconfig is apparently disabled
for most intents and purposes on that particular platform (see also
commit cad8798d1a).
2015-08-19 04:51:43 -03:00
Nils Kneuper
a445b4fb85 updated Latvian translation 2015-08-13 19:49:31 +02:00
Ignacio R. Morelle
42d19af0a7 Bump version 2015-06-25 20:47:10 -03:00
Ignacio R. Morelle
bebd642f7d Version 1.12.4 2015-06-25 20:08:11 -03:00
Ignacio R. Morelle
476c9b37f8 Update changelog entries for bug #23504 2015-06-25 18:45:33 -03:00
Ignacio R. Morelle
1f3dbfb086 Use looks_like_pbl() to disallow .pbl file inclusion (bug #23504)
This function is implemented using case-insensitive pattern matching,
unlike filesystem::ends_with(). I missed this when writing my original
fix, so the vulnerability still applied to .pbl files on a
case-insensitive filesystem (e.g. NTFS and FAT* on Windows) by using
different case to bypass the check.
2015-06-16 23:12:30 -03:00
Ignacio R. Morelle
401dae384d Bump version 2015-06-12 19:25:41 -03:00
Ignacio R. Morelle
f4ca0e0b81 Update changelog entries for bug #23633 with latest information 2015-06-12 18:40:50 -03:00