• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Return-To-The-Roots / s25client / 17208623929

25 Aug 2025 12:19PM UTC coverage: 50.497% (-0.005%) from 50.502%
17208623929

Pull #1794

github

web-flow
Merge 136f11398 into e99b7a27a
Pull Request #1794: Fix lags in right-click scrolling for SDL2

14 of 35 new or added lines in 8 files covered. (40.0%)

8 existing lines in 5 files now uncovered.

22514 of 44585 relevant lines covered (50.5%)

35961.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.33
/libs/s25main/controls/ctrlImage.cpp
1
// Copyright (C) 2005 - 2025 Settlers Freaks (sf-team at siedler25.org)
2
//
3
// SPDX-License-Identifier: GPL-2.0-or-later
4

5
#include "ctrlImage.h"
6
#include "CollisionDetection.h"
7
#include "driver/MouseCoords.h"
8

9
ctrlImage::ctrlImage(Window* parent, unsigned id, const DrawPoint& pos, ITexture* image, const std::string& tooltip)
51✔
10
    : Window(parent, id, pos), ctrlBaseTooltip(tooltip), ctrlBaseImage(image)
51✔
11
{}
51✔
12

13
ctrlImage::~ctrlImage() = default;
102✔
14

15
void ctrlImage::Draw_()
1✔
16
{
17
    DrawImage(Rect(GetDrawPos(), GetImageRect().getSize()));
1✔
18
}
1✔
19

20
bool ctrlImage::Msg_MouseMove(const MouseCoords& mc)
1✔
21
{
22
    if(GetImage())
1✔
23
    {
24
        if(IsMouseOver(mc.GetPos()))
1✔
UNCOV
25
            ShowTooltip();
×
26
        else
27
            HideTooltip();
1✔
28
    }
29

30
    return false;
1✔
31
}
32

33
Rect ctrlImage::GetBoundaryRect() const
1✔
34
{
35
    return Rect::move(GetImageRect(), GetDrawPos());
2✔
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc