Constant standard output stream

This commit is contained in:
cabelo 2019-03-21 22:38:06 -03:00 committed by Stefan Haustein
parent aef2fbccdc
commit 543cebef37

View file

@ -418,7 +418,7 @@ cimg_library::CImg<unsigned char> load_rgb_CImg(const char * const filename) {
int main(int argc, char* argv[]) {
struct winsize w;
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
ioctl(0, TIOCGWINSZ, &w);
int maxWidth = w.ws_col * 4;
int maxHeight = w.ws_row * 8;