Address cpplint issue "Lines should be <= 80 characters long [whitespace/line_length] [2]"
This commit is contained in:
parent
392d606848
commit
0bba5b9b41
16 changed files with 238 additions and 106 deletions
|
@ -36,7 +36,9 @@ struct ScreenMetrics
|
|||
ScreenMetrics()
|
||||
{
|
||||
typedef HRESULT WINAPI GetDpiForMonitor_t(HMONITOR, int, UINT*, UINT*);
|
||||
auto GetDpiForMonitor = (GetDpiForMonitor_t*)GetProcAddress(GetModuleHandle(TEXT("shcore")), "GetDpiForMonitor");
|
||||
auto GetDpiForMonitor =
|
||||
(GetDpiForMonitor_t*)GetProcAddress(GetModuleHandle(TEXT("shcore")),
|
||||
"GetDpiForMonitor");
|
||||
if(GetDpiForMonitor)
|
||||
{
|
||||
auto monitor = MonitorFromPoint({}, MONITOR_DEFAULTTOPRIMARY);
|
||||
|
@ -50,8 +52,8 @@ struct ScreenMetrics
|
|||
ReleaseDC(NULL, hdc);
|
||||
}
|
||||
|
||||
template<typename T> T X(T value) const { return ScaleForDpi(value, dpi_x); }
|
||||
template<typename T> T Y(T value) const { return ScaleForDpi(value, dpi_y); }
|
||||
template<class T> T X(T value) const { return ScaleForDpi(value, dpi_x); }
|
||||
template<class T> T Y(T value) const { return ScaleForDpi(value, dpi_y); }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue