------------------------------------ Config::Settings::Window::GetSize Retrieves the initial window size as defined by the config data - may be overridden at runtime
| 47 | // Retrieves the initial window size as defined by the config data - may be overridden at runtime |
| 48 | // |
| 49 | ivec2 Config::Settings::Window::GetSize() const |
| 50 | { |
| 51 | size_t const resIdx = Fullscreen ? FullscreenRes : WindowedRes; |
| 52 | if (resIdx < Resolutions.size()) |
| 53 | { |
| 54 | return Resolutions[resIdx]; |
| 55 | } |
| 56 | |
| 57 | LOG(FS("Settings::Window::DeriveSettings > Invalid resolution index in '%s' mode: %u", |
| 58 | (Fullscreen ? "fullscreen" : "windowed"), |
| 59 | (Fullscreen ? FullscreenRes : WindowedRes)), |
| 60 | core::LogLevel::Warning); |
| 61 | |
| 62 | return ivec2(); |
| 63 | } |
| 64 | |
| 65 | |
| 66 | //======== |
nothing calls this directly
no outgoing calls
no test coverage detected