mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Add min_font_size setting
This commit is contained in:
parent
02d70d9afd
commit
3c264e2077
@ -370,6 +370,7 @@ static void cfg_create_ini()
|
|||||||
"non_anti_aliased_fonts=true\n"
|
"non_anti_aliased_fonts=true\n"
|
||||||
"custom_width=0\n"
|
"custom_width=0\n"
|
||||||
"custom_height=0\n"
|
"custom_height=0\n"
|
||||||
|
"min_font_size=0\n"
|
||||||
"\n"
|
"\n"
|
||||||
"\n"
|
"\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
@ -935,6 +935,14 @@ HFONT WINAPI fake_CreateFontA(
|
|||||||
if (cfg_get_bool("non_anti_aliased_fonts", TRUE))
|
if (cfg_get_bool("non_anti_aliased_fonts", TRUE))
|
||||||
fdwQuality = NONANTIALIASED_QUALITY;
|
fdwQuality = NONANTIALIASED_QUALITY;
|
||||||
|
|
||||||
|
int minFontSize = cfg_get_int("min_font_size", 0);
|
||||||
|
if (nHeight < 0) {
|
||||||
|
nHeight = min(-minFontSize, nHeight);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
nHeight = max(minFontSize, nHeight);
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
real_CreateFontA(
|
real_CreateFontA(
|
||||||
nHeight,
|
nHeight,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user