style: auto-format C/C++ sources with clang-format

This commit is contained in:
Leonmmcoset
2026-04-20 18:37:02 +00:00
committed by github-actions[bot]
parent 73728ebd91
commit cc6faf787a
6 changed files with 822 additions and 857 deletions

View File

@@ -18,4 +18,3 @@
#define sscanf dg_sscanf
#endif

View File

@@ -137,8 +137,12 @@ void DG_Init(void) {
g_scale = 4ULL;
}
g_dst_x = (g_fb_info.width > ((u64)DOOMGENERIC_RESX * g_scale)) ? ((g_fb_info.width - ((u64)DOOMGENERIC_RESX * g_scale)) / 2ULL) : 0ULL;
g_dst_y = (g_fb_info.height > ((u64)DOOMGENERIC_RESY * g_scale)) ? ((g_fb_info.height - ((u64)DOOMGENERIC_RESY * g_scale)) / 2ULL) : 0ULL;
g_dst_x = (g_fb_info.width > ((u64)DOOMGENERIC_RESX * g_scale))
? ((g_fb_info.width - ((u64)DOOMGENERIC_RESX * g_scale)) / 2ULL)
: 0ULL;
g_dst_y = (g_fb_info.height > ((u64)DOOMGENERIC_RESY * g_scale))
? ((g_fb_info.height - ((u64)DOOMGENERIC_RESY * g_scale)) / 2ULL)
: 0ULL;
g_blit_req.pixels_ptr = 0ULL;
g_blit_req.src_width = (u64)DOOMGENERIC_RESX;
@@ -194,4 +198,3 @@ int cl_doom_run_main(int argc, char **argv) {
doomgeneric_Tick();
}
}