[wesnoth-commits] [wesnoth/wesnoth] 43de77: Allow theme resolutions based on an arbitrary base...
Glen Whitney
noreply at github.com
Sat May 16 20:01:03 UTC 2020
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 43de778c6aad8710707680a6b59ba0adbabbe565
https://github.com/wesnoth/wesnoth/commit/43de778c6aad8710707680a6b59ba0adbabbe565
Author: Glen Whitney <glen at studioinfinity.org>
Date: 2020-05-16 (Sat, 16 May 2020)
Changed paths:
M src/theme.cpp
M src/theme.hpp
Log Message:
-----------
Allow theme resolutions based on an arbitrary base resolution.
Prior to this change, the 1024x768 base resolution (found in the default theme)
was hard-coded into theme.cpp; resolutions beyond that were always scaled as if they
had been defined on a 1024x768 base resolution, even if the width and height specified
in the theme file were different. Combined with the scaling arithmetic in theme.cpp,
this assumption resulted in bugs such as panels disappearing whenever their width in the
base resolution specified in the theme exceeded 1024 pixels or their height exceeded 768
pixels. This change records the base resolution from the theme in the theme and all of
its objects, so the scaling computation can be done correctly.
Commit: 399fd8adf96ab2dbd40f2ac4fd5cc273e002e015
https://github.com/wesnoth/wesnoth/commit/399fd8adf96ab2dbd40f2ac4fd5cc273e002e015
Author: Glen Whitney <glen at studioinfinity.org>
Date: 2020-05-16 (Sat, 16 May 2020)
Changed paths:
M src/theme.cpp
M src/theme.hpp
Log Message:
-----------
restore inadvertent changes of some tabs into 8 spaces
Compare: https://github.com/wesnoth/wesnoth/compare/44be67b6fa0a...399fd8adf96a
More information about the Commits
mailing list