| 896 | } |
| 897 | |
| 898 | int BrowserWindow::GetDPIAwareBound(int bound) |
| 899 | { |
| 900 | // Remove the GetDpiForWindow call when using Windows 7 or any version |
| 901 | // below 1607 (Windows 10). You will also have to make sure the build |
| 902 | // directory is clean before building again. |
| 903 | return (bound * GetDpiForWindow(m_hWnd) / DEFAULT_DPI); |
| 904 | } |
| 905 | |
| 906 | std::wstring BrowserWindow::GetAppDataDirectory() |
| 907 | { |