Commit Graph

35 Commits (4d9488033f849132446ffb7840f1309fa38be8fd)

Author SHA1 Message Date
bunnei 4d9488033f hle: nvflinger: Merge Rect with Common::Rectangle. 3 years ago
Fernando Sahmkow 4ad22c7d2b Video Core: fix building for GCC. 3 years ago
Lioncash ea20b5c970 core: Fix clang build pt.3
Should finally resolve building with clang.
5 years ago
bunnei 3d592972dc
Revert "core: Fix clang build" 5 years ago
LC 88d5140cf2
Merge pull request #4796 from lioncash/clang
core: Fix clang build
5 years ago
Lioncash be1954e04c core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.

Fixes #4795
5 years ago
Lioncash 046c0c91a3 input_common/CMakeLists: Make some warnings errors
Makes the input_common code warnings consistent with the rest of the
codebase.
5 years ago
Morph 45ecd601be input_common/motion_input: Make use of Common::PI constant
Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file.
5 years ago
Lioncash df72480395 common: Make use of [[nodiscard]] where applicable
Now that clang-format makes [[nodiscard]] attributes format sensibly, we
can apply them to several functions within the common library to allow
the compiler to complain about any misuses of the functions.
5 years ago
Lioncash b724a4d90c General: Tidy up clang-format warnings part 2 5 years ago
ReinUsesLisp e38ed26b98 common/math_util: Support float type rectangles 5 years ago
Lioncash 1edf018319 common/math_util: Provide a template deduction guide for Common::Rectangle
Allows for things such as:

auto rect = Common::Rectangle{0, 0, 0, 0};

as opposed to being required to explicitly write out the underlying
type, such as:

auto rect = Common::Rectangle<int>{0, 0, 0, 0};

The only requirement for the deduction is that all constructor arguments
be the same type.
6 years ago
Lioncash b9238edd0d common/math_util: Move contents into the Common namespace
These types are within the common library, so they should be within the
Common namespace.
6 years ago
Lioncash 45211a7a91 common/math_util: Simplify std::make_signed usages to std::make_signed_t
Gets rid of the need to use typename to access the ::type alias.
6 years ago
Lioncash f11173f88c common/math_util: Make Rectangle's constructors constexpr
Allows objects that contain rectangle instances to be constexpr
constructible as well.
6 years ago
Lioncash cc0801745a common/math_util: Remove unnecessary static from PI
const/constexpr variables have internal linkage by default.
6 years ago
Lioncash 74fd0aa2e8 common/math_util: Remove unused IntervalsIntersect() function
This hasn't been used since the project started, so we may as well get
rid of it to keep it from bit rotting.
6 years ago
Lioncash f2a03468b1 math_util: Always initialize members of Rectangle
Prevents potentially using the members uninitialized.
7 years ago
Lioncash fae2dd0344
math_util: Remove the Clamp() function
C++17 adds clamp() to the standard library, so we can remove ours in
favor of it.
7 years ago
wwylele 55f5d0f777 MathUtil: add PI constant 8 years ago
James Rowe 793339b73a Round the rectangle size to prevent float to int casting issues
And other minor style changes
9 years ago
James Rowe d9305b0a07 Add default hotkey to swap primary screens.
Also minor style changes
9 years ago
James Rowe 5f72aade77 Rework frame layouts to use a max rectangle instead of hardcoded calculations 9 years ago
Yuri Kunde Schlesner 396a8d91a4 Manually tweak source formatting and then re-run clang-format 9 years ago
Emmanuel Gil Peyrot dc8479928c Sources: Run clang-format on everything. 9 years ago
tfarley 66b0d799ee Render-to-texture flush, interval math fix 10 years ago
tfarley 05dc633a8c OpenGL renderer 10 years ago
Emmanuel Gil Peyrot a31fd7f86b Common: Remove unused cruft from math_util, and remove a duplicated Rect class in common_types. 10 years ago
Yuri Kunde Schlesner e1fbac3ca1 Common: Remove common.h 10 years ago
purpasmart96 ebfd831ccb License change 10 years ago
Tony Wasserka e02ff0121f MathUtil: Make Rectangle work with unsigned types. 11 years ago
Lioncash 2f571a0d9d Common: Add a clamp function to math_utils.h 11 years ago
Lioncash 90e994471a Common: Move header guards over to pragma once
Also replaced C headers with the C++ equivalent ones
11 years ago
bunnei de0a034a84 fixed project includes to use new directory structure 11 years ago
bunnei 63e46abdb8 got rid of 'src' folders in each sub-project 11 years ago