aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/MonitorInfo.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-11-22 17:03:40 +0100
committerPierre Ossman <ossman@cendio.se>2024-11-22 17:03:40 +0100
commit44f67714bc53f33764da26d007b5dc4e8045473c (patch)
treed4f53e73219ee6593570ba626096551e6be48b1a /win/rfb_win32/MonitorInfo.cxx
parent213c12c4f12101b560d532416788914b9f67399a (diff)
downloadtigervnc-44f67714bc53f33764da26d007b5dc4e8045473c.tar.gz
tigervnc-44f67714bc53f33764da26d007b5dc4e8045473c.zip
Capitalize even more logging and exceptions
Diffstat (limited to 'win/rfb_win32/MonitorInfo.cxx')
-rw-r--r--win/rfb_win32/MonitorInfo.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/rfb_win32/MonitorInfo.cxx b/win/rfb_win32/MonitorInfo.cxx
index 9f7c2daf..5d715ef6 100644
--- a/win/rfb_win32/MonitorInfo.cxx
+++ b/win/rfb_win32/MonitorInfo.cxx
@@ -44,7 +44,7 @@ static void fillMonitorInfo(HMONITOR monitor, MONITORINFOEXA* mi) {
memset(mi, 0, sizeof(MONITORINFOEXA));
mi->cbSize = sizeof(MONITORINFOEXA);
if (!GetMonitorInfo(monitor, mi))
- throw rdr::win32_error("failed to GetMonitorInfo", GetLastError());
+ throw rdr::win32_error("Failed to GetMonitorInfo", GetLastError());
vlog.debug("Monitor is %ld,%ld-%ld,%ld", mi->rcMonitor.left, mi->rcMonitor.top, mi->rcMonitor.right, mi->rcMonitor.bottom);
vlog.debug("Work area is %ld,%ld-%ld,%ld", mi->rcWork.left, mi->rcWork.top, mi->rcWork.right, mi->rcWork.bottom);
vlog.debug("Device is \"%s\"", mi->szDevice);
@@ -57,7 +57,7 @@ MonitorInfo::MonitorInfo(HWND window) {
HMONITOR monitor = MonitorFromWindow(window, MONITOR_DEFAULTTONEAREST);
if (!monitor)
- throw rdr::win32_error("failed to get monitor", GetLastError());
+ throw rdr::win32_error("Failed to get monitor", GetLastError());
fillMonitorInfo(monitor, this);
}
@@ -67,7 +67,7 @@ MonitorInfo::MonitorInfo(const RECT& r) {
HMONITOR monitor = MonitorFromRect(&r, MONITOR_DEFAULTTONEAREST);
if (!monitor)
- throw rdr::win32_error("failed to get monitor", GetLastError());
+ throw rdr::win32_error("Failed to get monitor", GetLastError());
fillMonitorInfo(monitor, this);
}