Chris Thrasher
c0acaef204
Use in-class member initializers
2022-12-15 00:41:19 -07:00
Chris Thrasher
e8fa5d7d31
Add CI job for Clang on Windows
2022-12-14 15:26:08 -07:00
Lukas Dürrenberger
09ec31eeea
Merge pull request #2296 from 2.6.x
2022-12-14 18:08:32 +01:00
Chris Thrasher
dc9d794722
Merge remote-tracking branch 'origin/2.6.x' into feature/backmerge
2022-12-13 23:06:49 -07:00
Chris Thrasher
ed6d944810
Always trigger drmModeSetCrtc
2022-12-13 21:52:42 -07:00
Chris Thrasher
866dbee8cb
Add DRM utilities to sfml-window
2022-12-13 21:52:42 -07:00
Chris Thrasher
07bf6f8c12
Add option for enabling DRM
2022-12-13 21:52:42 -07:00
Chris Thrasher
3b6db4d18c
Enforce variable case
2022-12-12 16:10:03 -07:00
Chris Thrasher
ad416ab531
Check for minimum required clang-tidy version
2022-12-12 16:10:03 -07:00
Chris Thrasher
75b0c3a9a1
Disable warnings as errors for Clang on Windows
2022-12-12 12:09:51 -07:00
Chris Thrasher
fa2e61b9d5
Lock CI jobs to Ubuntu 20
...
Recently GitHub updated the ubuntu-latest images to point at Ubuntu
22 which broke CI for ths 2.6.x branch so let's stick to Ubuntu 20
until we can sort out what was failing.
2022-12-12 12:09:51 -07:00
Chris Thrasher
75642ef7aa
Enable warnings as errors for clang-cl.exe
2022-12-11 13:51:15 -07:00
Chris Thrasher
e54bf87e9b
Enable MSVC deprecation warning
2022-12-11 13:51:15 -07:00
fuzzdistor
7faa5507a4
Rearanged members of Transformable for a smaller object size
2022-11-29 01:28:05 -07:00
Chris Thrasher
4807c779a7
Apply warnings to install test
...
Because the install test project can't access SFML CMake functions,
these warnings are only applied when building the install tests as
a part of SFML.
2022-11-29 00:47:32 -07:00
Chris Thrasher
8c6b578012
Disallow clang-format version 15 and newer
2022-11-27 13:39:40 -06:00
Chris Thrasher
c5bd4a4063
Run all formatting jobs on Ubuntu 22.04
2022-11-27 13:39:40 -06:00
Jonny
510068d501
Use enum class instead of plain enum for PrimitiveType ( #2286 )
...
Co-authored-by: Jean Tampon <jean.tampon@gmail.com>
2022-11-27 12:17:27 -07:00
Jonny
8e3efab09d
Retry choco install step up to 10 times
...
With a timeout of 3min
2022-11-23 08:35:31 +01:00
Christian Ivicevic
a9f33999dc
Fix outdated use of the sf::VideoMode constructor
2022-11-22 14:55:52 +01:00
jim
1d4db22d62
Added move constructor/operator
2022-11-19 19:52:45 -07:00
Chris Thrasher
0bdefd25d7
Use in-class member initializers
...
See C++ Core Guidelines item C.45 for more information.
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c45-dont-define-a-default-constructor-that-only-initializes-data-members-use-in-class-member-initializers-instead
2022-11-17 18:44:36 -07:00
Bruno Van de Velde
c744369552
Use Per Monitor Aware instead of System Aware for DPI scaling on Windows
2022-11-15 22:38:52 +01:00
Chris Thrasher
ca9531bcbd
Remove the use of std::memset
2022-11-15 22:37:37 +01:00
kimci86
0310b03aef
Document that checking XButton1 and XButton2 state on X11 is not supported
2022-11-15 22:36:37 +01:00
Chris Thrasher
6451a29f49
Disable certain GCC pragmas when using other compilers
...
Fixes MSVC warning C4068 in public headers while keeping that warning
disabled for uses of GCC pragmas in SFML source files.
2022-11-05 12:52:40 -06:00
Jan Haller
0e16627677
Turn off Codecov annotations
...
Those annotations create enormous clutter in diff views on GitHub, making PR reviews complicated.
Since we are currently not headed toward 100% coverage, they provide little benefit.
2022-10-28 16:36:50 +02:00
Lukas Dürrenberger
6bd362ea7e
Merge pull request #2262 from 2.6.x
...
Back merge latest 2.6.x changes
2022-10-25 20:10:51 +02:00
Lukas Dürrenberger
d4d518e1be
Merge branch '2.6.x' into master
2022-10-25 19:17:35 +02:00
Chris Thrasher
c1064bae92
Lock 2.6.x branch to macOS 11 images
...
The macos-latest image recently upgraded to macOS 12. This includes
the iOS 16 SDK which deprecates some features which we're using. The
short term fix is to just keep using macOS 11 for 2.6.x.
2022-10-25 18:18:46 +02:00
kimci86
f796205a21
Process events in order to avoid X11 input method being confused
2022-10-24 23:14:48 +02:00
kimci86
b11328f386
Fix duplicated KeyPressed events with X11
...
Co-authored-by: Edgaru089 <sjs333@outlook.com>
2022-10-24 23:14:48 +02:00
Chris Thrasher
cd985e37d2
Enforce parameter case
2022-10-24 12:53:29 +02:00
Subs
65ef0619c8
[DRM] Use the current resolution
...
In order to prevent an unnecessary modeswitch and use the current TTY resolution, don't use the preferred mode reported by DRM. This is useful for people who set a custom resolution at boot and are forced into the monitor's preferred resolution when a SFML DRM app starts
2022-10-24 00:16:32 +02:00
Chris Thrasher
33e82e1262
Start enforcing naming style
2022-10-23 17:32:13 +02:00
Jonny Paton
e4bffe5b84
Rename test files to be unique
2022-10-23 16:39:12 +02:00
Subs
1d12c56332
[DRM] Use a GFX card with connected monitors
2022-10-20 00:19:30 +02:00
Lukas Dürrenberger
3af9168d03
Add 32-bits Visual Studio builds to the CI
2022-10-19 14:38:42 +02:00
Chris Thrasher
80b45d4725
Add custom target for running clang-tidy
2022-10-17 18:29:56 -06:00
Chris Thrasher
3d02d490bd
Hide doctest sources from compile commands database
...
This ensure that tools like run-clang-tidy don't try to analyze them
and better mimmicks how Doctest would behave if we were depending on
Doctest via find_package instead.
2022-10-17 18:29:56 -06:00
Chris Thrasher
fc61f2469d
Update code coverage action
2022-10-16 16:14:03 -06:00
Chris Thrasher
e0b6053b15
Update checkout action
2022-10-16 16:14:03 -06:00
Chris Thrasher
229e3f61f4
Use doctest-provided main
implementation
2022-10-16 14:55:33 -06:00
Chris Thrasher
e4f81af337
Test install interface
...
Skip Android, iOS, and Framework builds simply because I can't get
them to work and don't want that holding up getting the rest of the
install tests merged.
Skip the Static DRM install test because there's a bug in the install
that needs to be fixed.
2022-10-15 09:07:49 +02:00
Lukas Dürrenberger
8f54a3e97c
Merge pull request #2244 from SFML/2.6.x
...
Backmerge 2.6.x to master
2022-10-14 16:53:16 +02:00
Chris Thrasher
a5dbe59f07
Merge branch '2.6.x'
2022-10-13 14:33:11 -06:00
Chris Thrasher
5cd8a164dd
Use list(APPEND
more
2022-10-12 00:23:35 +02:00
Chris Thrasher
46b9c79b77
Link to latest CMake docs
2022-10-12 00:23:35 +02:00
Chris Thrasher
ff685de1bf
Ensure add_custom_command
uses VERBATIM
...
https://cmake.org/cmake/help/latest/command/add_custom_command.html
"Use of VERBATIM is recommended as it enables correct behavior."
The docs basically say that this is required.
2022-10-12 00:23:35 +02:00
Chris Thrasher
88f9a33479
Use PROJECT_
variables
2022-10-12 00:23:35 +02:00