summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 79de4f8ef..38c76bac6 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -26,6 +26,7 @@
#include "enums/gui/linkhighlightmode.h"
#include "gui/gui.h"
+#include "gui/mouseoverlink.h"
#include "gui/skin.h"
#include "gui/fonts/font.h"
@@ -50,30 +51,6 @@
#include "debug.h"
-namespace
-{
- struct MouseOverLink final
- {
- MouseOverLink(const int x,
- const int y) :
- mX(x),
- mY(y)
- { }
-
- A_DEFAULT_COPY(MouseOverLink)
-
- bool operator() (const BrowserLink &link) const
- {
- return (mX >= link.x1 &&
- mX < link.x2 &&
- mY >= link.y1 &&
- mY < link.y2);
- }
- const int mX;
- const int mY;
- };
-} // namespace
-
ImageSet *BrowserBox::mEmotes = nullptr;
int BrowserBox::mInstances = 0;