| 28 | } |
| 29 | |
| 30 | HMONITOR BaseXamlPageHost::GetInitialMonitor(POINT &cursor, xaml_startup_position position) |
| 31 | { |
| 32 | if (position == xaml_startup_position::mouse) |
| 33 | { |
| 34 | if (!GetCursorPos(&cursor)) |
| 35 | { |
| 36 | LastErrorHandle(spdlog::level::info, L"Failed to get cursor position"); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | return MonitorFromPoint(cursor, MONITOR_DEFAULTTOPRIMARY); |
| 41 | } |
| 42 | |
| 43 | float BaseXamlPageHost::GetDpiScale(HMONITOR mon) |
| 44 | { |
nothing calls this directly
no outgoing calls
no test coverage detected