mirror of
https://github.com/ong19th/Citron.git
synced 2025-12-12 22:37:00 +00:00
- In commit b3facaa6bb, the copyright header was
updated to include "Citron Homebrew Project" across multiple files, regardless
of whether any contributions were made.
- This commit removes the incorrect attribution and reverts the copyright header
to its previous state.
- Copyright attribution should only be added when meaningful contributions have
been made to the file.
- This commit ensures proper compliance with copyright standards and maintains
correct attribution to the respective contributors.
- Special thanks to Tachi for pointing out the need for these corrections and
ensuring that proper attribution practices are followed.
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "common/settings.h"
|
|
|
|
static inline Settings::ScalingFilter GetScalingFilter() {
|
|
return Settings::values.scaling_filter.GetValue();
|
|
}
|
|
|
|
static inline Settings::AntiAliasing GetAntiAliasing() {
|
|
return Settings::values.anti_aliasing.GetValue();
|
|
}
|
|
|
|
static inline Settings::ScalingFilter GetScalingFilterForAppletCapture() {
|
|
return Settings::ScalingFilter::Bilinear;
|
|
}
|
|
|
|
static inline Settings::AntiAliasing GetAntiAliasingForAppletCapture() {
|
|
return Settings::AntiAliasing::None;
|
|
}
|
|
|
|
struct PresentFilters {
|
|
Settings::ScalingFilter (*get_scaling_filter)();
|
|
Settings::AntiAliasing (*get_anti_aliasing)();
|
|
};
|
|
|
|
constexpr PresentFilters PresentFiltersForDisplay{
|
|
.get_scaling_filter = &GetScalingFilter,
|
|
.get_anti_aliasing = &GetAntiAliasing,
|
|
};
|
|
|
|
constexpr PresentFilters PresentFiltersForAppletCapture{
|
|
.get_scaling_filter = &GetScalingFilterForAppletCapture,
|
|
.get_anti_aliasing = &GetAntiAliasingForAppletCapture,
|
|
};
|