Fix clang-tidy. (#469)

This commit is contained in:
Arthur Sonzogni
2022-08-28 21:30:01 +02:00
committed by GitHub
parent 1e381fcad6
commit 8226c5aea7
7 changed files with 19 additions and 18 deletions

View File

@@ -378,13 +378,13 @@ Dimensions Dimension::Full() {
// static
/// Create a screen with the given dimension along the x-axis and y-axis.
Screen Screen::Create(Dimensions width, Dimensions height) {
return Screen(width.dimx, height.dimy);
return {width.dimx, height.dimy};
}
// static
/// Create a screen with the given dimension.
Screen Screen::Create(Dimensions dimension) {
return Screen(dimension.dimx, dimension.dimy);
return {dimension.dimx, dimension.dimy};
}
Screen::Screen(int dimx, int dimy)