From cc1fbcc9a95c13e4d9622486da9451da797c193c Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 31 Jul 2025 23:04:35 +0900 Subject: [PATCH] Fonts: undo change done in b884533 since 19d1ad0 made them unnecessary. (#8794, #8850) --- imstb_truetype.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/imstb_truetype.h b/imstb_truetype.h index 1a2778773..cf33289f6 100644 --- a/imstb_truetype.h +++ b/imstb_truetype.h @@ -4017,8 +4017,7 @@ STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int s #define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1) -/*static*/ -void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) { unsigned char buffer[STBTT_MAX_OVERSAMPLE]; int safe_w = w - kernel_width; @@ -4080,8 +4079,7 @@ void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes } } -/*static*/ -void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) { unsigned char buffer[STBTT_MAX_OVERSAMPLE]; int safe_h = h - kernel_width; @@ -4143,8 +4141,7 @@ void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes } } -/*static*/ -float stbtt__oversample_shift(int oversample) +static float stbtt__oversample_shift(int oversample) { if (!oversample) return 0.0f;