aboutsummaryrefslogtreecommitdiff
path: root/c/drag.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-09-07 01:22:30 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-09-07 01:22:30 +0200
commitac7d676a1c457f71f1d3ae17d74699dd95c9c985 (patch)
tree96d44cc6740de053db377ac51f3102b9871a90d4 /c/drag.cpp
parentb2a018ff822bcdb5b9b691025a5fc1eb6fc13b4b (diff)
downloadEpisodeBrowser-ac7d676a1c457f71f1d3ae17d74699dd95c9c985.tar.gz
Normalize error message formatting.
Diffstat (limited to 'c/drag.cpp')
-rw-r--r--c/drag.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/drag.cpp b/c/drag.cpp
index 1622653..f239eff 100644
--- a/c/drag.cpp
+++ b/c/drag.cpp
@@ -25,7 +25,7 @@ bool Dragger::HandleLButtonDown()
{
POINT pt;
if (!GetRelativeCursorPos(parent.hWnd, &pt))
- throw Err(WINDOWS, L"Mouse cursor position could not be retrieved: %s");
+ throw Err(WINDOWS, L"Mouse cursor position could not be retrieved: %s.");
if (!InDragArea(pt.x, pt.y)) return false;
if (IsDouble(GetMessageTime(), pt)) {
@@ -41,7 +41,7 @@ bool Dragger::HandleSetCursor()
{
POINT pt;
if (!GetRelativeCursorPos(parent.hWnd, &pt))
- throw Err(WINDOWS, L"Mouse cursor position could not be retrieved: %s");
+ throw Err(WINDOWS, L"Mouse cursor position could not be retrieved: %s.");
extern HCURSOR g_hcSizeNs;
bool r = true;
@@ -63,7 +63,7 @@ bool DlvDragger::InDragArea(const int x, const int y) const
{
RECT rrDlv;
if (!GetRelativeRect(parent.dlv.hWnd, &rrDlv))
- throw Err(WINDOWS, L"Data list view rectangle could not be retrieved: %s");
+ throw Err(WINDOWS, L"Data list view rectangle could not be retrieved: %s.");
const int pad = EBIsThemeActive()? Dpi(6): 0;
const int extra = EBIsThemeActive()? 0: Dpi(2);
@@ -76,7 +76,7 @@ void DlvDragger::Drag(const int, const int y) const
{
RECT rrDlv;
if (!GetRelativeRect(parent.dlv.hWnd, &rrDlv))
- throw Err(WINDOWS, L"Data list view rectangle could not be retrieved: %s");
+ throw Err(WINDOWS, L"Data list view rectangle could not be retrieved: %s.");
if (y < Dpi(50) || y > rrDlv.bottom-Dpi(20)) return;