mirror of https://github.com/OpenTTD/OpenTTD
Codechange: use C++ initialisation over MemSetT
parent
cc51b29234
commit
8f1e94c546
|
@ -11,7 +11,6 @@
|
||||||
#include "../../debug.h"
|
#include "../../debug.h"
|
||||||
#include "../../blitter/factory.hpp"
|
#include "../../blitter/factory.hpp"
|
||||||
#include "../../core/math_func.hpp"
|
#include "../../core/math_func.hpp"
|
||||||
#include "../../core/mem_func.hpp"
|
|
||||||
#include "../../error_func.h"
|
#include "../../error_func.h"
|
||||||
#include "../../fileio_func.h"
|
#include "../../fileio_func.h"
|
||||||
#include "../../fontcache.h"
|
#include "../../fontcache.h"
|
||||||
|
@ -368,8 +367,7 @@ void LoadWin32Font(FontSize fs)
|
||||||
std::string font = GetFontCacheFontName(fs);
|
std::string font = GetFontCacheFontName(fs);
|
||||||
if (font.empty()) return;
|
if (font.empty()) return;
|
||||||
|
|
||||||
LOGFONT logfont;
|
LOGFONT logfont{};
|
||||||
MemSetT(&logfont, 0);
|
|
||||||
logfont.lfPitchAndFamily = fs == FS_MONO ? FIXED_PITCH : VARIABLE_PITCH;
|
logfont.lfPitchAndFamily = fs == FS_MONO ? FIXED_PITCH : VARIABLE_PITCH;
|
||||||
logfont.lfCharSet = DEFAULT_CHARSET;
|
logfont.lfCharSet = DEFAULT_CHARSET;
|
||||||
logfont.lfOutPrecision = OUT_OUTLINE_PRECIS;
|
logfont.lfOutPrecision = OUT_OUTLINE_PRECIS;
|
||||||
|
|
Loading…
Reference in New Issue