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

Return-To-The-Roots / s25client / 22518049176

28 Feb 2026 09:27AM UTC coverage: 50.149%. First build
22518049176

Pull #1890

github

web-flow
Merge 0b97c9676 into 8a6c9b6f2
Pull Request #1890: Add support for borderless Windows

155 of 626 new or added lines in 44 files covered. (24.76%)

23038 of 45939 relevant lines covered (50.15%)

42060.08 hits per line

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

54.55
/libs/driver/include/driver/VideoMode.h
1
// Copyright (C) 2005 - 2026 Settlers Freaks (sf-team at siedler25.org)
2
//
3
// SPDX-License-Identifier: GPL-2.0-or-later
4

5
#pragma once
6

7
/// Window size or resolution
8
struct VideoMode
9
{
10
    unsigned short width;
11
    unsigned short height;
12

13
    constexpr VideoMode() : width(0), height(0) {}
14✔
14
    constexpr VideoMode(unsigned short width, unsigned short height) : width(width), height(height) {}
28✔
15
    constexpr bool operator==(const VideoMode& o) const { return (width == o.width && height == o.height); }
7✔
NEW
16
    constexpr bool operator!=(const VideoMode& o) const { return !(*this == o); }
×
17
};
18

19
// Enum like type with extra flag
20
struct DisplayMode
21
{
22
    enum Type
23
    {
24
        Windowed,
25
        Fullscreen,
26
        BorderlessWindow,
27
    } type = Windowed;
28
    bool resizeable = true;
29

30
    constexpr DisplayMode() = default;
5✔
31
    constexpr DisplayMode(Type t) : type(t) {}
19✔
NEW
32
    constexpr explicit DisplayMode(unsigned t) : type(Type(t)) {}
×
33
    constexpr bool operator==(const Type& t) const { return type == t; }
17✔
NEW
34
    constexpr bool operator!=(const Type& t) const { return type != t; }
×
NEW
35
    constexpr bool operator==(const DisplayMode& o) const { return o.type == type && o.resizeable == resizeable; }
×
NEW
36
    constexpr bool operator!=(const DisplayMode& o) const { return !(o == *this); }
×
37
};
38

39
constexpr auto maxEnumValue(DisplayMode::Type)
40
{
41
    return DisplayMode::BorderlessWindow;
42
}
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