From 31c0cd280ab2f55b1f5e78b017fc08da9e1e61e7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Feb 2015 21:33:41 +0000 Subject: various font related code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@12258 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FloatingContacts/src/main.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'plugins/FloatingContacts/src/main.cpp') diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp index 31399841e7..8a93846941 100644 --- a/plugins/FloatingContacts/src/main.cpp +++ b/plugins/FloatingContacts/src/main.cpp @@ -533,15 +533,7 @@ static void CreateThumbsFont() LOGFONT lf; FontService_GetFont( LPGENT("Floating contacts"), s_fonts[nFontId], &tColor[nFontId], &lf); - - HDC hdc = GetDC(NULL); - LONG height = lf.lfHeight; - lf.lfHeight = -MulDiv(lf.lfHeight, GetDeviceCaps(hdc, LOGPIXELSY), 72); - ReleaseDC(NULL, hdc); - hFont[nFontId] = CreateFontIndirect(&lf); - - lf.lfHeight = height; } } -- cgit v1.2.3