aboutsummaryrefslogtreecommitdiff
path: root/c/layout.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-06 22:35:40 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-06 22:35:40 +0200
commitc970cc687615f904e66004b6795636fbabb843cb (patch)
tree321f7f109c237e2337e1ccb38811fcd88a534c4f /c/layout.cpp
parente0bc29e318c3e5c7918703a3f5ae91033e28b388 (diff)
downloadEpisodeBrowser-c970cc687615f904e66004b6795636fbabb843cb.tar.gz
Ensure correct mouse position for double click.
Diffstat (limited to 'c/layout.cpp')
-rw-r--r--c/layout.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/layout.cpp b/c/layout.cpp
index 24ad11f..09c0958 100644
--- a/c/layout.cpp
+++ b/c/layout.cpp
@@ -39,7 +39,7 @@ void UpdateLayout(int w, int h)
RDW_ERASE|RDW_FRAME|RDW_INVALIDATE|RDW_ALLCHILDREN);
}
-bool DlvDragger::InDragArea(const int x, const int y)
+bool DlvDragger::InDragArea(const int x, const int y) const
{
RECT rrDlv;
Require(GetRelativeRect(g_dlv->hWnd, &rrDlv));
@@ -51,7 +51,7 @@ bool DlvDragger::InDragArea(const int x, const int y)
return true;
}
-void DlvDragger::Drag(const int, const int y)
+void DlvDragger::Drag(const int, const int y) const
{
RECT rrDlv;
Require(GetRelativeRect(g_dlv->hWnd, &rrDlv));
@@ -66,14 +66,14 @@ void DlvDragger::Drag(const int, const int y)
RDW_ERASE|RDW_FRAME|RDW_INVALIDATE|RDW_ALLCHILDREN|RDW_UPDATENOW);
}
-void DlvDragger::Reset()
+void DlvDragger::Reset() const
{
g_dlv->SetHeight(0);
Pl("cfg","set_dlv_height",0);
UpdateLayout();
}
-void DlvDragger::Done()
+void DlvDragger::Done() const
{
Pl("cfg","set_dlv_height",g_dlv->Height());
}