1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
---|---|
2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
3 | #include "RenderAPI/BsVideoModeInfo.h" |
4 | |
5 | namespace bs |
6 | { |
7 | bool VideoMode::operator== (const VideoMode& other) const |
8 | { |
9 | return width == other.width && height == other.height && |
10 | outputIdx == other.outputIdx && refreshRate == other.refreshRate; |
11 | } |
12 | |
13 | VideoOutputInfo::~VideoOutputInfo() |
14 | { |
15 | for (auto& videoMode : mVideoModes) |
16 | bs_delete(videoMode); |
17 | |
18 | if (mDesktopVideoMode != nullptr) |
19 | bs_delete(mDesktopVideoMode); |
20 | } |
21 | |
22 | VideoModeInfo::~VideoModeInfo() |
23 | { |
24 | for (auto& output : mOutputs) |
25 | bs_delete(output); |
26 | } |
27 | } |