diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-13 15:45:51 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-13 15:45:51 +0100 |
commit | 30f118a86d09ece52bd752cbc6982d11ab99c289 (patch) | |
tree | 7441d07d3c69f50caec0931267c68eaa2fd9eca8 /windows | |
parent | 02bbaa3e8855cc632dfca42a8bf06a59a3cecf2a (diff) | |
download | netsurf-30f118a86d09ece52bd752cbc6982d11ab99c289.tar.gz netsurf-30f118a86d09ece52bd752cbc6982d11ab99c289.tar.bz2 |
remove unecessary css includes from fronetends
Diffstat (limited to 'windows')
-rw-r--r-- | windows/font.c | 1 | ||||
-rw-r--r-- | windows/gui.c | 12 |
2 files changed, 5 insertions, 8 deletions
diff --git a/windows/font.c b/windows/font.c index 6e1efdc6a..5c1fee07e 100644 --- a/windows/font.c +++ b/windows/font.c @@ -26,7 +26,6 @@ #include <windows.h> -#include "css/css.h" #include "desktop/font.h" #include "utils/nsoption.h" #include "utils/utf8.h" diff --git a/windows/gui.c b/windows/gui.c index 0d148f2cc..20167c690 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -31,7 +31,6 @@ #include "content/urldb.h" #include "content/fetch.h" -#include "css/utils.h" #include "desktop/browser_history.h" #include "desktop/browser.h" #include "desktop/mouse.h" @@ -1159,21 +1158,20 @@ static HWND nsws_window_create_statusbar(struct gui_window *w) return hwnd; } -static css_fixed get_window_dpi(HWND hwnd) +static int get_window_dpi(HWND hwnd) { HDC hdc = GetDC(hwnd); int dpi = GetDeviceCaps(hdc, LOGPIXELSY); - css_fixed fix_dpi = INTTOFIX(96); - if (dpi > 10) { - fix_dpi = INTTOFIX(dpi); + if (dpi <= 10) { + dpi = 96; /* 96DPI is the default */ } ReleaseDC(hwnd, hdc); - LOG(("FIX DPI %x", fix_dpi)); + LOG(("FIX DPI %d", dpi)); - return fix_dpi; + return dpi; } /** |