Test Info Output Format
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
17
main.cpp
17
main.cpp
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user