Test Info Output Format
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
2024-08-13 12:48:27 -04:00
parent edb2e29246
commit 9d51ac0026

View File

@@ -61,14 +61,19 @@ int main() {
std::vector<ReWindow::Display> d = ReWindow::Display::getDisplaysFromWindowManager();
for (ReWindow::Display& display : d) {
std::cout << "Width" << display.getDefaultGraphicsMode().getWidth() << std::endl;
std::cout << "Height" << display.getDefaultGraphicsMode().getHeight() << std::endl;
std::cout << "Refresh Rate" << display.getDefaultGraphicsMode().getRefreshRate() << std::endl;
auto w = display.getDefaultGraphicsMode().getWidth();
auto h = display.getDefaultGraphicsMode().getHeight();
auto r = display.getDefaultGraphicsMode().getRefreshRate();
std::cout << "Default: ";
std::cout << std::format("Mode ({},{}) @ {}hz", w, h, r) << std::endl;
for (ReWindow::FullscreenGraphicsMode& fgm : display.getGraphicsModes()) {
std::cout << "Width" << fgm.getWidth() << std::endl;
std::cout << "Height" << fgm.getHeight() << std::endl;
std::cout << "Refresh Rate" << fgm.getRefreshRate() << std::endl;
w = fgm.getWidth();
h = fgm.getHeight();
r = fgm.getRefreshRate();
std::cout << std::format("Mode ({},{}) @ {}hz", w, h, r) << std::endl;
}
}