Fix T91592: Negative Cycles remaining render time

For the default startup was showing -14:-08.-48 as a remaining time.

Was an integer overflow when specifying total number of pixel-samples.
This commit is contained in:
2021-09-22 17:30:00 +02:00
parent bc1e675bb9
commit ac68b08c5b

View File

@@ -430,7 +430,8 @@ void Session::do_delayed_reset()
/* Progress. */
progress.reset_sample();
progress.set_total_pixel_samples(buffer_params_.width * buffer_params_.height * params.samples);
progress.set_total_pixel_samples(static_cast<uint64_t>(buffer_params_.width) *
buffer_params_.height * params.samples);
if (!params.background) {
progress.set_start_time();