Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Print --videomodes response to standard output, too
  • Loading branch information
kahrl committed Nov 2, 2015
1 parent 3285bf7 commit 8f49358
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client/clientlauncher.cpp
Expand Up @@ -680,7 +680,7 @@ bool ClientLauncher::print_video_modes()
return false;
}

dstream << _("Available video modes (WxHxD):") << std::endl;
std::cout << _("Available video modes (WxHxD):") << std::endl;

video::IVideoModeList *videomode_list = nulldevice->getVideoModeList();

Expand All @@ -691,14 +691,14 @@ bool ClientLauncher::print_video_modes()
for (s32 i = 0; i < videomode_count; ++i) {
videomode_res = videomode_list->getVideoModeResolution(i);
videomode_depth = videomode_list->getVideoModeDepth(i);
dstream << videomode_res.Width << "x" << videomode_res.Height
std::cout << videomode_res.Width << "x" << videomode_res.Height
<< "x" << videomode_depth << std::endl;
}

dstream << _("Active video mode (WxHxD):") << std::endl;
std::cout << _("Active video mode (WxHxD):") << std::endl;
videomode_res = videomode_list->getDesktopResolution();
videomode_depth = videomode_list->getDesktopDepth();
dstream << videomode_res.Width << "x" << videomode_res.Height
std::cout << videomode_res.Width << "x" << videomode_res.Height
<< "x" << videomode_depth << std::endl;

}
Expand Down

0 comments on commit 8f49358

Please sign in to comment.