From 2302d4efbd1ef975ce0dd74dcedaad404ada742e Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 5 Jul 2026 21:36:11 +0200 Subject: [PATCH] mark R_ThingIsFullBrightT as static --- src/i_tcp.c | 1 + src/r_things.cpp | 2 +- src/sdl/i_video.c | 3 +++ src/v_video.c | 4 ++-- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/i_tcp.c b/src/i_tcp.c index f7f4a3210..4eab1efbc 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -1694,6 +1694,7 @@ boolean I_InitTcpNetwork(void) hardware_MAXPACKETLENGTH = MAXPACKETLENGTH; } } + if (M_CheckProtoParam("ip")) { COM_ImmedExecute(va("exec \"%s"PATHSEP"kartexec.cfg\" -noerror\n", srb2home)); diff --git a/src/r_things.cpp b/src/r_things.cpp index 4d9f2e738..ee517c11f 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -3038,7 +3038,7 @@ boolean R_ThingIsPaperSprite(mobj_t *thing) } template -boolean R_ThingIsFullBrightT(T *thing) +static boolean R_ThingIsFullBrightT(T *thing) { return ((thing->frame & FF_BRIGHTMASK) == FF_FULLBRIGHT); } diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index c736330ad..c6554c2b9 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1816,15 +1816,18 @@ void I_StartupGraphics(void) framebuffer = SDL_TRUE; } + // Choose Software renderer if (M_CheckParm("-software")) rendermode = render_soft; #ifdef HWRENDER + // Choose OpenGL renderer else if (M_CheckParm("-opengl")) rendermode = render_opengl; msaa = 0; boolean msaa_set = false; a2c = false; boolean a2c_set = false; + // MSAA antialiasing if (M_CheckParm("-msaa") && M_IsNextParm()) { const char* str = M_GetNextParm(); diff --git a/src/v_video.c b/src/v_video.c index 2ac659ba6..fc84a0cdc 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1563,8 +1563,8 @@ void V_DrawFillConsoleMap(INT32 x, INT32 y, INT32 w, INT32 h, INT32 c) { // mpc 12-04-2018 const UINT8 *fadetable = ((UINT8 *)transtables + ((alphalevel-1)<y) ? y : x - w = clip(w,vid.width); - h = clip(h,vid.height); + w = clip(w, vid.width); + h = clip(h, vid.height); #undef clip for (v = 0; v < h; v++, dest += vid.width) {