Commit graph

151 commits

Author SHA1 Message Date
Wedge009
f61138498c Remove header from VC project (deleted in 056d7ac8).
[ci skip]
2017-11-30 11:59:01 +11:00
lundberg
ba6b6a1f53 Update VC12 project for wesnothd
Drop the additional requirements for SDL2 libraries. Wesnothd no longer requires SDL2.
2017-11-26 15:26:17 -06:00
Wedge009
34008913ed Add missing configuration for Release compilation.
[ci skip]
2017-11-20 16:33:21 +11:00
Wedge009
de31ac37b1 Tidy recent additions.
[ci skip]
2017-11-20 16:32:39 +11:00
Jyrki Vesterinen
91151cbe52 Update Visual Studio project 2017-11-19 20:21:11 +02:00
Charles Dang
378b9199ae Moved point wrapper out of GUI2 namespace
I'm not sure if it should become part of the sdl namespace, but for now I'm leaving it out.
2017-11-11 21:49:05 +11:00
Charles Dang
b1ad293ccd GUI2: removed unused MP Command Wrapper dialog
This was the equivalent of the Player Info dialog for the old GUI1 MP Lobby, and is now unused.
The new GUI2 lobby uses the aforementioned Player Info dialog. The functionality is basically
the same, though, except the send-private-message interface is more streamlined in the new lobby.
2017-10-29 16:56:16 +11:00
Charles Dang
e6830faab4 Proper (I think) VC projectfile update for e9c6dff56a
[ci skip]
2017-10-29 11:23:10 +11:00
gfgtdf
e9c6dff56a Slider refactor
1) We now use a single function to set slider min/max value, this fixes #1641
   (sliders having a temporary invalid (min > max) state between set_min() and
   set_max() calls)
2) I split the sliders_base class from the scrollbar_base class to not
   accidently break the rather complicated scrollbar_base class while
   refactoring sliders.
3) We don't use floats in the slider code to make sure no rounding errors happen.
4) This fixes #1539 by removing slider::in_orthoginal (which made it impossible
   to pull a slider to its maximum/minimum) and intead clamping the mouse
   position in range.
5) This fixes #1656 and #1767 by refactoriung code (that bug happend mainly
   because the old code used variables that contained the position in 'steps'
   as pixel position and vice versa)
6) Sliders now 'snap' to the correct values just like the gui1 sliders did.
7) Slider positions are now poperly rounded to its neariest values
   instead of just beeing 'floored'
2017-10-29 01:13:48 +02:00
Gregory A Lundberg
f7bea59fe9 Finish switch to MT19937 for randomness
Coverity has been complaining about using rand() as an insecure function. As we're using it, this function is not insecure; but is also not a very good RNG. We're using MT19937 in a system-independant manner. But some uses of rand() were never converted. This converts them.

This closes the following Coverity issues:

CID 1356297
CID 1356299
CID 1356303
CID 1356304
CID 1356306
CID 1356312
CID 1356314
CID 1380163
CID 1380173
CID 1380179
CID 1380191
CID 1380198
CID 1380201
CID 1380210
CID 1380214
CID 1380215
CID 1380219
CID 1380230
CID 1380241
2017-10-26 09:28:24 +11:00
Wedge009
73fa6bc508 Minor VC project updates
* Remove dependencies on SDL2_net.lib (hasn't been required since at least 8b341411)
* Remove unnecessary backslashes introduced in dccd73d1
* Sort associated filter.

[ci skip]
2017-10-25 16:33:32 +11:00
Charles Dang
dccd73d11f Fixup f2593034a8 (output dir not set)
[ci skip]
2017-10-20 16:52:49 +11:00
Charles Dang
f2593034a8 GUI2: moved MP Lobby and Player Info files into the multiplayer dialog subdir 2017-10-20 16:36:18 +11:00
Wedge009
3be5346051 Updating VC project files for 010237fb and c4d55647.
[ci skip]
2017-10-10 22:14:04 +11:00
galegosimpatico
8b0d7e6799 On Boost: update build scripts and documentation.
At branch 'doc-from-discord-boost-discussion-20170926'.

The build documentation and scripts were slightly out of date about
Boost. This commit makes a (probably interim) update to them.

(CMakeLists.txt|SConstruct): `wesnoth` won't build using Boost earlier
than '1.50.0'. Boost 1.50.0 changed the location of version 3 of Boost
filesystem, from 'boost/filesystem/v3/' (e.g. for
'using boost::filesystem::v3::path;') to 'boost/filesystem/' (e.g. for
'using boost::filesystem::path;', enforced since the very introduction
of 'src/filesystem_boost.cpp'), making it incompatible unless using
precompiler directives for supporting backwards versions of Boost
filesystem prior than '1.50.0'. Using Boost 1.50.0 (and 51, 52 etc.)
`wesnoth` is able build and run. I checked using `ldd` that I am right
about the run time environment.

INSTALL.md: Requirement of Boost libraries version up to date.

projectfiles/VC12/README.md: Requirement of Boost libraries up to
date, only the statement of which one is the minimum version, not the
rest of the build guide for Boost as requirement.

.gitignore: Add KDevelop backup documents.
2017-10-06 20:38:50 +03:00
Jyrki Vesterinen
c4d556475e Add sdl/userevent.hpp to the Visual Studio project
Follow-up for c6f523f8cd.

[ci skip]
2017-09-17 16:04:32 +03:00
Wedge009
98c0443d9a Properly update MSVC project files for new fs_commit files (cb99d90d and 28c51796)
[ci skip]
2017-09-15 17:29:38 +10:00
Charles Dang
cb99d90dc0 Updated MSVC campaignd projectfile for 28c5179636
[ci skip]
2017-09-15 10:29:12 +11:00
Wedge009
50818594ea Add missing configuration for VC Release build.
[ci skip]
2017-08-16 18:49:53 +10:00
Celtic Minstrel
25a0d099a9 Enable sorting campaign list in chronological or lexicographical order 2017-08-14 12:36:07 -04:00
Wedge009
1fe589cf99 Add missing Release build from 4bd1fa71.
[ci skip]
2017-07-01 11:53:30 +10:00
Celtic Minstrel
4bd1fa7157 Allow filter formulas to use a number of previously FormulaAI-exclusive functions 2017-06-24 19:07:53 -04:00
Jyrki Vesterinen
7507f3cc65 Copy string_view implementation from Boost
@gfgtdf asked me for this in IRC.
2017-06-02 14:24:29 +03:00
Jyrki Vesterinen
9c1b9af525 Use std::unique_ptr to manage the layout and context in pango_text
This makes it easier for one canvas to manage multiple layouts.
2017-06-02 13:54:37 +03:00
Wedge009
82f7568bb2 Properly update VC project files for 56433d12.
[ci skip]
2017-05-24 15:54:08 +10:00
Celtic Minstrel
80a87d0b49 Update MSVC project 2017-05-22 14:39:20 -04:00
Jyrki Vesterinen
56433d12a3 Merge branch 'login_save_crypt' 2017-05-22 20:10:09 +03:00
Celtic Minstrel
96ca0b026e Replace config_of with new variadic config constructor 2017-05-21 16:27:46 -04:00
Jyrki Vesterinen
5bd52c2063 Update Visual Studio project 2017-05-19 06:29:40 +03:00
Charles Dang
1ea8e0f05c Renamed wmi_container to wmi_manager
Since it's not a container anymore, it shouldn't be called such.
2017-05-19 06:50:57 +11:00
Jyrki Vesterinen
fb8506dbac Fix build with Visual Studio
First, VS2015 doesn't appear to support importing alias templates directly,
so let's make an alias template ourselves and import every alias we need.

That approach doesn't work with VS2013, apparently due to lack of support
for expression SFINAE. Thus, we now use our custom alias templates on
VS2013.

Also, I moved type_trait_aliases.hpp to the wesnothlib project where it
belongs.

Note that because of requiring expression SFINAE on VS2015, building
Wesnoth on VS2015 now requires that Update 1 or above is installed.
2017-05-16 21:08:26 +03:00
Wedge009
4d84f08354 Update VC projects for 13b00f73, cdaa588e, and 3fce91a8.
[ci skip]
2017-05-15 19:37:43 +10:00
Jyrki Vesterinen
692013272b Visual Studio: always treat warning C4239 as an error
See https://msdn.microsoft.com/en-us/library/186yxbac.aspx

Suggested by @CelticMinstrel.

[ci skip]
2017-05-13 12:58:43 +03:00
Celtic Minstrel
c9191c9812 Add OpenSSL's libcrypto as a dependency
This also removes the included SHA1 and MD5 implementations
in favour of those from OpenSSL.

Thanks to @jyrkive for helping to get the CMake build working and
ensuring the game still compiles with OpenSSL 1.1.0.
(The SHA_xxx() aliases were removed in OpenSSL 1.1.0.)
2017-05-12 15:57:13 -04:00
Celtic Minstrel
9365538b3b Don't store the user's password in plaintext in the prefs file
The game now supports @ or = in usernames for the purpose of saving them to a file.

Though I don't think these are allowed currently, it's probably better to
support it from the start rather than having things break if they later
become allowed.
2017-05-12 15:56:41 -04:00
ln-zookeeper
6a0aa3bdc9 Project file fix to account for ad4f6b122 2017-05-11 15:13:50 +03:00
Wedge009
8225e8d4b0 Updating VC project files for 194b5ef1.
[ci skip]
2017-05-10 17:03:58 +10:00
Wedge009
265a0e9bd5 Updating VC project files for e4f03fe4. 2017-05-04 15:56:40 +10:00
Wedge009
974315f9b7 Updating VC project files for e97b9923.
[ci skip]
2017-05-03 23:13:06 +10:00
Wedge009
5b6860ec65 Add missing Release build option for VC project files. 2017-04-30 21:09:25 +10:00
Jyrki Vesterinen
eeeb54c2ff Update Visual Studio project 2017-04-30 13:19:43 +03:00
Jyrki Vesterinen
076c47cd3e Update Visual Studio project 2017-04-30 12:57:21 +03:00
Celtic Minstrel
cdca6b79d8 Merge pull request #962 from wesnoth/wml_tag_porting
Porting WML tags to Lua (part 2)
2017-04-29 02:25:10 -04:00
Celtic Minstrel
0828c2bdf8 MSVC: Add Test_Debug and Test_Release to solution configurations 2017-04-28 18:22:55 -04:00
Celtic Minstrel
f142ed6170 Fix MSVC misconfiguration for unit tests 2017-04-28 17:53:40 -04:00
Celtic Minstrel
77cce6edbe MSVC: Exclude wesnoth.cpp from unit tests configuration
[ci skip]
2017-04-27 18:18:26 -04:00
Celtic Minstrel
6906ced4e7 Properly port [music] to Lua 2017-04-27 17:09:03 -04:00
Wedge009
46acff818b Update VC project files for d8ed11c2 (dropping _new suffix).
Also add missing configuration for Release build in multimenu_button.cpp and general tidying.
2017-04-20 20:43:20 +10:00
Celtic Minstrel
d01834e210 Update MSVC project 2017-04-19 04:08:34 -04:00
Celtic Minstrel
1793133a59 Fix menu_button widget trying to be two things at the same time.
The menu_button is now only a drop-down menu that supports a single selection.
A new multimenu_button widget supports a drop-down menu with multiple selections.
The new multimenu_button widget displays its current selection while not open.
2017-04-16 00:08:50 -04:00