bool i_fit_to_win(arg_t a) { bool ret = false; if (mode == MODE_IMAGE) { if ((ret = img_fit_win(&img))) img_center(&img); } return ret; }
bool i_fit_to_win(arg_t a) { bool ret = false; scalemode_t sm = (scalemode_t) a; if (mode == MODE_IMAGE) { if ((ret = img_fit_win(&img, sm))) img_center(&img); } return ret; }