Apply clang-format

This commit is contained in:
OpenSauce04 2026-04-26 16:58:01 +01:00 committed by OpenSauce
parent 0572930c70
commit bc2dbb502a
4 changed files with 15 additions and 6 deletions

View file

@ -157,7 +157,7 @@ void Config::ReadValues() {
ReadSetting("Renderer", Settings::values.turbo_limit);
// Workaround to map Android setting for enabling the frame limiter to the format Citra expects
if (android_config->GetBoolean("Renderer", "use_frame_limit", true)) {
ReadSetting("Renderer", Settings::values.frame_limit);
ReadSetting("Renderer", Settings::values.frame_limit);
} else {
Settings::values.frame_limit = 0;
}

View file

@ -18,8 +18,8 @@
#include "video_core/renderer_base.h"
bool EmuWindow_Android::OnSurfaceChanged(ANativeWindow* surface) {
int w = surface== NULL ? 0 : ANativeWindow_getWidth(surface);
int h = surface== NULL ? 0 : ANativeWindow_getHeight(surface);
int w = surface == NULL ? 0 : ANativeWindow_getWidth(surface);
int h = surface == NULL ? 0 : ANativeWindow_getHeight(surface);
if (render_window == surface && w == window_width && h == window_height) {
return false;
}
@ -53,7 +53,7 @@ void EmuWindow_Android::OnTouchMoved(int x, int y) {
void EmuWindow_Android::OnFramebufferSizeChanged() {
const bool is_portrait_mode = IsPortraitMode() && !is_secondary;
UpdateCurrentFramebufferLayout(window_width,window_height,is_portrait_mode);
UpdateCurrentFramebufferLayout(window_width, window_height, is_portrait_mode);
}
EmuWindow_Android::EmuWindow_Android(ANativeWindow* surface, bool is_secondary)

View file

@ -57,7 +57,16 @@ enum class PortraitLayoutOption : u32 {
PortraitOriginal
};
enum class SecondaryDisplayLayout : u32 { None, TopScreenOnly, BottomScreenOnly, SideBySide, ReversePrimary, Original, Hybrid, LargeScreen };
enum class SecondaryDisplayLayout : u32 {
None,
TopScreenOnly,
BottomScreenOnly,
SideBySide,
ReversePrimary,
Original,
Hybrid,
LargeScreen
};
/** Defines where the small screen will appear relative to the large screen
* when in Large Screen mode
*/

View file

@ -305,7 +305,7 @@ FramebufferLayout AndroidSecondaryLayout(u32 width, u32 height) {
const Settings::SecondaryDisplayLayout layout =
Settings::values.secondary_display_layout.GetValue();
switch (layout) {
case Settings::SecondaryDisplayLayout::TopScreenOnly:
case Settings::SecondaryDisplayLayout::TopScreenOnly:
return SingleFrameLayout(width, height, false, Settings::values.upright_screen.GetValue());
case Settings::SecondaryDisplayLayout::BottomScreenOnly: