From cd2805d33d68ac48e62f4d9f2d1e6c16df8bb031 Mon Sep 17 00:00:00 2001 From: Stefan Haustein Date: Sat, 23 Mar 2019 22:33:10 +0100 Subject: [PATCH] Revert "null values" This reverts commit 9717adc840761690ad0e3ebd6c9f835607bee1c1. --- src/main/cpp/tiv.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/cpp/tiv.cpp b/src/main/cpp/tiv.cpp index 60aeadd..8f89cdc 100644 --- a/src/main/cpp/tiv.cpp +++ b/src/main/cpp/tiv.cpp @@ -443,11 +443,8 @@ cimg_library::CImg load_rgb_CImg(const char * const filename) { int main(int argc, char* argv[]) { struct winsize w; - ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); - - if(w.ws_col == 0 && w.ws_col == 0) ioctl(0, TIOCGWINSZ, &w); - + int maxWidth = w.ws_col * 4; int maxHeight = w.ws_row * 8; int flags = 0;