forked from moonpower/azahar-UWP
Applied clang-format-18 to codebase
This commit is contained in:
@@ -42,7 +42,9 @@ struct CaptureSession final {
|
||||
|
||||
#define MEMBER(type, name, func) \
|
||||
struct type##Deleter { \
|
||||
void operator()(type* ptr) { type##_##func(ptr); } \
|
||||
void operator()(type* ptr) { \
|
||||
type##_##func(ptr); \
|
||||
} \
|
||||
}; \
|
||||
std::unique_ptr<type, type##Deleter> name
|
||||
|
||||
|
||||
@@ -26,9 +26,9 @@ public:
|
||||
void StopCapture() override;
|
||||
void SetResolution(const Service::CAM::Resolution& resolution) override;
|
||||
void SetFlip(Service::CAM::Flip flip) override;
|
||||
void SetEffect(Service::CAM::Effect effect) override{};
|
||||
void SetEffect(Service::CAM::Effect effect) override {};
|
||||
void SetFormat(Service::CAM::OutputFormat format) override;
|
||||
void SetFrameRate(Service::CAM::FrameRate frame_rate) override{};
|
||||
void SetFrameRate(Service::CAM::FrameRate frame_rate) override {};
|
||||
std::vector<u16> ReceiveFrame() override;
|
||||
bool IsPreviewAvailable() override;
|
||||
|
||||
|
||||
@@ -21,12 +21,12 @@ public:
|
||||
Interface(SharedGlobalRef<jstring> path, const Service::CAM::Flip& flip);
|
||||
~Interface();
|
||||
void StartCapture() override;
|
||||
void StopCapture() override{};
|
||||
void StopCapture() override {};
|
||||
void SetResolution(const Service::CAM::Resolution& resolution) override;
|
||||
void SetFlip(Service::CAM::Flip flip) override;
|
||||
void SetEffect(Service::CAM::Effect effect) override{};
|
||||
void SetEffect(Service::CAM::Effect effect) override {};
|
||||
void SetFormat(Service::CAM::OutputFormat format) override;
|
||||
void SetFrameRate(Service::CAM::FrameRate frame_rate) override{};
|
||||
void SetFrameRate(Service::CAM::FrameRate frame_rate) override {};
|
||||
std::vector<u16> ReceiveFrame() override;
|
||||
bool IsPreviewAvailable() override;
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ class SharedContext_Android : public Frontend::GraphicsContext {
|
||||
public:
|
||||
SharedContext_Android(EGLDisplay egl_display, EGLConfig egl_config,
|
||||
EGLContext egl_share_context)
|
||||
: egl_display{egl_display}, egl_surface{eglCreatePbufferSurface(egl_display, egl_config,
|
||||
egl_empty_attribs.data())},
|
||||
: egl_display{egl_display},
|
||||
egl_surface{eglCreatePbufferSurface(egl_display, egl_config, egl_empty_attribs.data())},
|
||||
egl_context{eglCreateContext(egl_display, egl_config, egl_share_context,
|
||||
egl_context_attribs.data())} {
|
||||
ASSERT_MSG(egl_surface, "eglCreatePbufferSurface() failed!");
|
||||
|
||||
@@ -215,8 +215,8 @@ Joystick::~Joystick() {
|
||||
}
|
||||
|
||||
ButtonFactory::ButtonFactory()
|
||||
: button_list{std::make_shared<ButtonList>()}, analog_button_list{
|
||||
std::make_shared<AnalogButtonList>()} {}
|
||||
: button_list{std::make_shared<ButtonList>()},
|
||||
analog_button_list{std::make_shared<AnalogButtonList>()} {}
|
||||
|
||||
std::unique_ptr<Input::ButtonDevice> ButtonFactory::Create(const Common::ParamPackage& params) {
|
||||
if (params.Has("axis")) {
|
||||
|
||||
@@ -342,8 +342,7 @@ void JNICALL Java_org_citra_citra_1emu_NativeLibrary_initializeGpuDriver(
|
||||
GetJString(env, custom_driver_name), GetJString(env, file_redirect_dir));
|
||||
}
|
||||
|
||||
void JNICALL Java_org_citra_citra_1emu_NativeLibrary_enableAdrenoTurboMode(JNIEnv* env,
|
||||
jobject obj,
|
||||
void JNICALL Java_org_citra_citra_1emu_NativeLibrary_enableAdrenoTurboMode(JNIEnv* env, jobject obj,
|
||||
jboolean enable) {
|
||||
EnableAdrenoTurboMode(enable);
|
||||
}
|
||||
@@ -356,8 +355,8 @@ void Java_org_citra_citra_1emu_NativeLibrary_notifyOrientationChange([[maybe_unu
|
||||
Settings::values.layout_option = static_cast<Settings::LayoutOption>(layout_option);
|
||||
}
|
||||
void Java_org_citra_citra_1emu_NativeLibrary_updateFramebuffer([[maybe_unused]] JNIEnv* env,
|
||||
[[maybe_unused]] jobject obj,
|
||||
jboolean is_portrait_mode) {
|
||||
[[maybe_unused]] jobject obj,
|
||||
jboolean is_portrait_mode) {
|
||||
auto& system = Core::System::GetInstance();
|
||||
if (system.IsPoweredOn()) {
|
||||
system.GPU().Renderer().UpdateCurrentFramebufferLayout(is_portrait_mode);
|
||||
|
||||
Reference in New Issue
Block a user