Skip to content

Commit

Permalink
vita3k: clang-format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Sep 15, 2024
1 parent 3e29996 commit fa94656
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vita3k/net/include/net/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <mem/ptr.h>

// Define our own htonll and ntohll because its not available in some systems/platforms
#define HTONLL(x) (((uint64_t)htonl((x)&0xFFFFFFFFUL)) << 32) | htonl((uint32_t)((x) >> 32))
#define NTOHLL(x) (((uint64_t)ntohl((x)&0xFFFFFFFFUL)) << 32) | ntohl((uint32_t)((x) >> 32))
#define HTONLL(x) (((uint64_t)htonl((x) & 0xFFFFFFFFUL)) << 32) | htonl((uint32_t)((x) >> 32))
#define NTOHLL(x) (((uint64_t)ntohl((x) & 0xFFFFFFFFUL)) << 32) | ntohl((uint32_t)((x) >> 32))

enum SceNetProtocol : uint32_t {
SCE_NET_IPPROTO_IP = 0,
Expand Down
2 changes: 1 addition & 1 deletion vita3k/np/src/trophy/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Context::Context(const CommunicationID &comm_id, IOState *io, const SceUID troph
};
}

#define SET_TROPHY_BIT(arr, bit) arr[(bit) >> 5] |= (1 << ((bit)&31))
#define SET_TROPHY_BIT(arr, bit) arr[(bit) >> 5] |= (1 << ((bit) & 31))

static bool read_trophy_entry_to_buffer(TRPFile &trophy_file, const char *fname, std::string &buffer) {
// Read the trophy config
Expand Down
2 changes: 1 addition & 1 deletion vita3k/renderer/include/renderer/vulkan/screen_filters.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ScreenFilter {
public:
ScreenFilter(ScreenRenderer &screen_renderer);
virtual void init() = 0;
virtual void on_resize(){};
virtual void on_resize() {};
virtual void render(bool is_pre_renderpass, vk::ImageView src_img, vk::ImageLayout src_layout, const Viewport &viewport) = 0;
virtual std::string_view get_name() = 0;
// do we need the render pass not to clear the swapchain content ?
Expand Down

0 comments on commit fa94656

Please sign in to comment.