parent
763aa3e638
commit
0f40406ddd
@ -443,9 +443,6 @@ cimg_library::CImg<unsigned char> load_rgb_CImg(const char * const filename) {
|
|||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
struct winsize w;
|
struct winsize w;
|
||||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
|
|
||||||
|
|
||||||
if(w.ws_col == 0 && w.ws_col == 0)
|
|
||||||
ioctl(0, TIOCGWINSZ, &w);
|
ioctl(0, TIOCGWINSZ, &w);
|
||||||
|
|
||||||
int maxWidth = w.ws_col * 4;
|
int maxWidth = w.ws_col * 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user