Skip to content

Commit afb6e9a

Browse files
committed
Fonts: OversampleH auto-selection uses 36 as heuristic for now.
1 parent 8a1613a commit afb6e9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imgui_draw.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2859,8 +2859,8 @@ static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector<int>*
28592859

28602860
void ImFontAtlasBuildGetOversampleFactors(const ImFontConfig* cfg, int* out_oversample_h, int* out_oversample_v)
28612861
{
2862-
// Automatically disable horizontal oversampling over size 32
2863-
*out_oversample_h = (cfg->OversampleH != 0) ? cfg->OversampleH : (cfg->SizePixels * cfg->RasterizerDensity > 32.0f || cfg->PixelSnapH) ? 1 : 2;
2862+
// Automatically disable horizontal oversampling over size 36
2863+
*out_oversample_h = (cfg->OversampleH != 0) ? cfg->OversampleH : (cfg->SizePixels * cfg->RasterizerDensity > 36.0f || cfg->PixelSnapH) ? 1 : 2;
28642864
*out_oversample_v = (cfg->OversampleV != 0) ? cfg->OversampleV : 1;
28652865
}
28662866

0 commit comments

Comments
 (0)