Commit Graph
35878 Commits
Author SHA1 Message Date
Tracy Ward 2bce815a1a Fix build errors with RageDisplay_D3D using Windows SDK
Also: Implement d3d9 screenshots without d3dx9

This only implements the two most likely surface formats. Does anybody
actually use 16-bit rendering anymore? (If yes, I'll do the slower path
through StretchRect to convert)

(backport from master, where it was two commits)
2019-10-04 09:35:44 -04:00
Tracy Ward 6aedffabf3 Add GetErrorString to DirectXHelpers; Add error list
* Another thing lost was DXGetErrorString. Re-implement it.
* Include a partial list of errors.

(backported from master, where it was two commits)

Note: If we ever drop support for windows older than win8, we can
remove this and just call FormatMessage.
2019-10-04 09:29:01 -04:00
Tracy Ward e9ca966af7 Allow CreateScreenshot to return nullptr
RageDisplay_D3D::CreateScreenshot will be returning nullptr until I get
around to re-implementing it without using d3dx, which is another thing that
did not make the move into the Windows SDK.

(backport from master)
2019-10-04 09:00:24 -04:00
Tracy Ward dce0d0f91c Fix potential security issue with FormatMessage use
From MSDN:

Security Remarks
If this function is called without FORMAT_MESSAGE_IGNORE_INSERTS, the
Arguments parameter must contain enough parameters to satisfy all insertion
sequences in the message string, and they must be of the correct type.
Therefore, do not use untrusted or unknown message strings with inserts
enabled because they can contain more insertion sequences than Arguments
provides, or those that may be of the wrong type. In particular, it is
unsafe to take an arbitrary system error code returned from an API and use
FORMAT_MESSAGE_FROM_SYSTEM without FORMAT_MESSAGE_IGNORE_INSERTS.

(backport from master)
2019-10-04 08:58:05 -04:00
Tracy Ward dfb524a547 Fix incorrect usage of GetLastError in LLW_Win32
GetLastError must be called before any other function which could possibly
change it, otherwise we will lose the error code.

(backport from master)
2019-10-04 08:56:03 -04:00
Tracy Ward cdc4bd9da2 Replace missing dxguid.lib functionality
One thing that did not make it into the move to the Windows SDK is the
dxguid.lib library, which defined the IIDs for all of the DirectX interfaces.
This replaces that, defining the ones we use. Currently, we only need to
define the DirectInput IIDs, so that is all that is here.

(backport from master)
2019-10-04 08:48:19 -04:00
Tracy Ward 46e1410932 Remove DirectX SDK search from CMake
The DirectX APIs are now part of the Windows SDK. We should stop relying on
the ancient SDK. This is step one.

(backport from master)
2019-10-04 08:45:34 -04:00
Tracy WardandGitHub 238ad72847 sync 5_1-new with upstream 2019-10-04 08:02:54 -04:00
Tracy WardandGitHub 75f7d8876d Merge pull request #1903 from Prcuvu/cmake_use_folders
Reenable CMake USE_FOLDERS
2019-10-04 06:59:44 -04:00
Prcuvu b26b711e47 Reenable USE_FOLDERS 2019-10-04 14:09:11 +08:00
dguzekandGitHub 187349bfd0 Merge pull request #1900 from RhythmLunatic/mainline
Fix pump couples mode
2019-10-03 14:40:05 -04:00
RhythmLunatic 63735535bf Fix pump couples mode 2019-10-02 11:07:47 -05:00
dguzekandGitHub 17135e0e21 Merge pull request #1868 from RhythmLunatic/mainline
Support any size splash on linux (Again)
2019-10-02 10:18:13 -04:00
Wesley CastroandColby Klein 8f8ce5c48d Fix accessing pointer from temporary object. (#1897) 2019-09-26 10:36:13 -07:00
RhythmLunatic 91c31431e8 back to DOS line endings 2019-09-21 13:48:13 -05:00
Martin KröningandColby Klein 75d9400cb0 5.1: Travis Rework and macOS (#1870)
* Rework .travis.yml, build on macOS

* Align AppVeyor building to Travis building
2019-09-05 16:51:44 -07:00
MaT1g3RandColby Klein 568cd64d69 Fix grammar error in README (#1879) 2019-09-03 22:22:57 -07:00
Martin KröningandColby Klein 8ab7c7fab9 5_1-new: Fix building with clang/clang++ (#1866)
* Have clang and libc++ working.

If any clang users run into problems, remember to have libc++ and libc++abi set up.
Fixes
stepmania/src/arch/ArchHooks/ArchHooks.h:37:27: error:
      variable has incomplete type 'tm'
        virtual void SetTime( tm ) { }
                                 ^
/usr/include/wchar.h:83:8: note: forward declaration of 'tm'
struct tm;
       ^

* Add noexcept to swap.

See https://github.com/stepmania/stepmania/commit/e860773799f01d02f281c8c39421e7e34658788d#commitcomment-32674320

* Use standard c++11 for handling unexpected exceptions

The cxxabi.h header can make linking difficult.
2019-08-20 18:19:52 -07:00
RhythmLunatic deab68b012 Back to C++ 11 2019-08-13 23:47:59 -05:00
RhythmLunatic 0a9718374b support any size splash on linux 2019-08-13 23:43:35 -05:00
dguzekandGitHub 4db93fc774 Merge pull request #1867 from mwkroening/appveyor-irc
Use batch syntax for commenting CI IRC postings.
2019-08-10 16:33:11 -04:00
Martin Kröning 71cec195cb Use batch syntax for commenting CI IRC postings. 2019-08-10 18:42:52 +02:00
Colby KleinandGitHub 51981d5d01 disable appveyor irc reporter for now 2019-08-09 10:09:14 -07:00
Martin KröningandColby Klein a110070c07 Adjust .editorconfig (#1863)
Fixes #1862.
Taken from 15c4d46.
2019-08-09 10:04:10 -07:00
Martin KröningandColby Klein 48277254bd Build with PulseAudio by default (#1853)
Fixes #1848.
2019-08-08 11:03:30 -07:00
dguzekandGitHub 38b97f4738 Merge pull request #1843 from geefr/cmake-fix-audiolib-selection
CMake: Fix selection logic for sound libraries
2019-06-30 17:43:03 -04:00
dguzekandGitHub c9198db726 Merge pull request #1837 from teejusb/5_1-new
Integrate C++11 Branch into 5_1-new
2019-06-30 17:41:20 -04:00
Gareth Francis d4ca6f8a43 Fix selection logic for sound libraries
HAS_XX is used elsewhere in the project to select optional sources,
will only be true if the lib is available on the system, and the
user asked to use it.
2019-06-30 12:07:56 +01:00
teejusb f08d7d9f68 Fix some incorrect typing with the NULL->nullptr conversion for Windows 2019-06-22 23:16:10 -07:00
teejusb f230d39634 Fix crash when saving Preferences and current game doesn't exist 2019-06-22 23:09:45 -07:00
teejusb f8b559163f Add <array> header to BeginnerHelper to use std::array 2019-06-22 18:59:28 -07:00
teejusb aedcbb1b26 Add <numeric> header to PlayerStageStats to use std::accumulate 2019-06-22 18:58:39 -07:00
teejusb de29ba656b Add <numeric> header to ActorMultiVertex to use std::accumulate 2019-06-22 13:02:09 -07:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
dguzekandGitHub 708139f56e Merge pull request #1820 from RhythmLunatic/mainline
Make TwoPartSelect remappable
2019-06-14 08:13:02 -04:00
RhythmLunatic c7f9133134 Fix broken Groove Radar 2019-06-12 21:47:48 -05:00
RhythmLunatic 61041b8941 metrics 2019-04-19 10:26:04 -05:00
RhythmLunatic feb77d5711 Make TwoPartSelect remappable 2019-04-19 10:03:12 -05:00
dguzekandGitHub 631985af4b Merge pull request #1819 from RhythmLunatic/mainline
Win32 PacDrive
2019-04-18 21:34:27 -04:00
RhythmLunatic 8b8cb969d1 Add missing PacDrive Win32 driver 2019-04-18 09:14:41 -05:00
RhythmLunatic f376420f7f Merge branch '5_1-new' of https://github.com/stepmania/stepmania into mainline 2019-04-04 15:56:23 -05:00
Colby Klein 4977f29fe3 silence a bunch of msvc warnings 2019-03-28 15:05:07 -07:00
Rhythm LunaticandColby Klein dcb2f74c8d Add More OptionsList functionality (#1810)
* Add More OptionsList functionality

* Remove Size parameter because it's broken

* Make OptionsList inputs remappable

* Change Next/Prev OptionsList to CodeDetector
2019-03-28 14:49:46 -07:00
RhythmLunatic 2648c65c22 Change Next/Prev OptionsList to CodeDetector 2019-03-28 16:11:36 -05:00
RhythmLunatic 4eecbcf933 Make OptionsList inputs remappable 2019-03-26 20:29:37 -05:00
RhythmLunatic 60af9e3153 Remove Size parameter because it's broken 2019-03-26 14:08:25 -05:00
RhythmLunatic 5f59626eef Add More OptionsList functionality 2019-03-26 13:36:07 -05:00
Colby Klein 3eb03feadd add the toasty sound back
i missed it a lot
2019-03-20 11:58:19 -07:00
Colby Klein d6bd0005eb we don't use the mouse in default, so hide it 2019-03-18 17:23:30 -07:00
Colby Klein 96384e4c05 Fix ShowMouseCursor preference on windows 2019-03-18 15:52:50 -07:00