mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Clean up merge conflict.
This commit is contained in:
parent
689aae4c5f
commit
0e4f4e595f
@ -270,24 +270,18 @@ static int PDC_fontface_exists( const TCHAR* fontface)
|
|||||||
|
|
||||||
static LOGFONT PDC_get_logical_font( const int font_idx)
|
static LOGFONT PDC_get_logical_font( const int font_idx)
|
||||||
{
|
{
|
||||||
if ( PDC_font_size < 0)
|
|
||||||
{
|
|
||||||
PDC_font_size = scale_font_for_current_dpi( 15); /* default 15 points */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* see if the user has overridden the default fontface. */
|
/* see if the user has overridden the default fontface. */
|
||||||
if ( wcslen( PDC_font_name) == 0 && PDC_fontface_exists(PDC_preferred_fontface))
|
if ( wcslen( PDC_font_name) == 0 && PDC_fontface_exists(PDC_preferred_fontface))
|
||||||
{
|
{
|
||||||
wcsncpy( PDC_font_name, PDC_preferred_fontface, sizeof(PDC_font_name));
|
wcsncpy( PDC_font_name, PDC_preferred_fontface, sizeof(PDC_font_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
LOGFONT lf;
|
|
||||||
|
|
||||||
if ( PDC_font_size < 0)
|
if ( PDC_font_size < 0)
|
||||||
{
|
{
|
||||||
PDC_font_size = scale_font_for_current_dpi( 12); /* default 12 points */
|
PDC_font_size = scale_font_for_current_dpi( 12); /* default 12 points */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOGFONT lf;
|
||||||
memset(&lf, 0, sizeof(LOGFONT)); /* Clear out structure. */
|
memset(&lf, 0, sizeof(LOGFONT)); /* Clear out structure. */
|
||||||
lf.lfHeight = -PDC_font_size;
|
lf.lfHeight = -PDC_font_size;
|
||||||
#ifdef PDC_WIDE
|
#ifdef PDC_WIDE
|
||||||
|
Loading…
Reference in New Issue
Block a user