[wesnoth-commits] [wesnoth/wesnoth] 6a729d: Differentiate divide by zero errors
Glen Whitney
noreply at github.com
Sat May 16 20:01:16 UTC 2020
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 6a729df4c0d17e9a025392ed5040e4654c066710
https://github.com/wesnoth/wesnoth/commit/6a729df4c0d17e9a025392ed5040e4654c066710
Author: Glen Whitney <glen at studioinfinity.org>
Date: 2020-05-16 (Sat, 16 May 2020)
Changed paths:
M src/formula/variant.cpp
Log Message:
-----------
Differentiate divide by zero errors
When debugging formula problems, it is convenient to be able to pinpoint at what line in
the code an exception was thrown. This commit differentiates two divide by zero errors
to facilitate that.
Commit: 49d8779ff1aadd753762bff57a57b58476989470
https://github.com/wesnoth/wesnoth/commit/49d8779ff1aadd753762bff57a57b58476989470
Author: Glen Whitney <glen at studioinfinity.org>
Date: 2020-05-16 (Sat, 16 May 2020)
Changed paths:
M src/gui/core/widget_definition.cpp
M src/gui/core/widget_definition.hpp
M src/gui/core/window_builder.cpp
M src/gui/core/window_builder.hpp
M src/gui/widgets/helper.cpp
M src/gui/widgets/settings.cpp
M src/gui/widgets/settings.hpp
M src/gui/widgets/styled_widget.cpp
M src/gui/widgets/styled_widget.hpp
M src/gui/widgets/text_box.cpp
M src/gui/widgets/window.cpp
M src/gui/widgets/window.hpp
Log Message:
-----------
Allow formulas to compute GUI2 text_font_size and window maximum_height and maximum width
In order to modify the GUI2 configuration files so that text_font_size can intelligently
scale with monitor characteristics, it's necessary to allow the text_font_size,
maximum_height, and maximum_width to be specified by WFL formulas rather than just
numerical constants. This commit makes that possible. In addition, it computes and exposes
the pixel pitch of the SDL display (in microns per pixel) in the variable
screen_pitch_microns for use in these formulas.
Commit: f3a472ab963a5ff04b738ccb90de1c151039c1b6
https://github.com/wesnoth/wesnoth/commit/f3a472ab963a5ff04b738ccb90de1c151039c1b6
Author: Glen Whitney <glen at studioinfinity.org>
Date: 2020-05-16 (Sat, 16 May 2020)
Changed paths:
M data/gui/macros/_initial.cfg
M data/gui/widget/label_default.cfg
M data/gui/window/game_load.cfg
M data/gui/window/game_stats.cfg
M data/gui/window/unit_list.cfg
M data/gui/window/unit_recall.cfg
M data/schema/gui.cfg
Log Message:
-----------
Modify GUI2 config files to scale font size with screen pixel pitch
These changes to the data/gui subdirectories make it so that above a certain
screen pixel dimensions (currently 1200x900), text font sizes will be scaled
with the pixel pitch of the SDL video device. In addition, several dialogues
(such as the unit recall window, for example) are allowed to take on larger
pixel dimensions to accommodate the larger (in pixel size) fonts.
Compare: https://github.com/wesnoth/wesnoth/compare/399fd8adf96a...f3a472ab963a
More information about the Commits
mailing list