diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-01 17:22:17 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-01 19:51:19 +0100 |
commit | 57427620704c707fa5d50eb6f01a5c4654708c4c (patch) | |
tree | db046ce7188be5133fbbaf4da7da7e167858a601 /frontends/windows/window.c | |
parent | f4f67698eb6eb92a8ac606f771401c0c480d0ad5 (diff) | |
download | netsurf-57427620704c707fa5d50eb6f01a5c4654708c4c.tar.gz netsurf-57427620704c707fa5d50eb6f01a5c4654708c4c.tar.bz2 |
split browser and browser_window operations
Diffstat (limited to 'frontends/windows/window.c')
-rw-r--r-- | frontends/windows/window.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/frontends/windows/window.c b/frontends/windows/window.c index 575d089a3..689e78d8c 100644 --- a/frontends/windows/window.c +++ b/frontends/windows/window.c @@ -72,29 +72,6 @@ static int open_windows = 0; /** - * Obtain the DPI of the display. - * - * \param hwnd A win32 window handle to get the DPI for - * \return The DPI of the device the window is displayed on. - */ -static int get_window_dpi(HWND hwnd) -{ - HDC hdc = GetDC(hwnd); - int dpi = GetDeviceCaps(hdc, LOGPIXELSY); - - if (dpi <= 10) { - dpi = 96; /* 96DPI is the default */ - } - - ReleaseDC(hwnd, hdc); - - NSLOG(netsurf, INFO, "FIX DPI %d", dpi); - - return dpi; -} - - -/** * create and attach accelerator table to main window * * \param gw gui window context. @@ -190,8 +167,6 @@ static HWND nsws_window_create(HINSTANCE hInstance, struct gui_window *gw) /* set the gui window associated with this browser */ SetProp(hwnd, TEXT("GuiWnd"), (HANDLE)gw); - browser_set_dpi(get_window_dpi(hwnd)); - if ((nsoption_int(window_width) >= 100) && (nsoption_int(window_height) >= 100) && (nsoption_int(window_x) >= 0) && |