We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c1ef0 commit ceb418fCopy full SHA for ceb418f
src/screensaver.rs
@@ -262,7 +262,7 @@ impl Screensaver {
262
state.currently_drawn_pieces += 1;
263
state.pieces_remaining -= 1;
264
265
- if state.pieces_total >= cfg.max_drawn_pieces {
+ if cfg.max_drawn_pieces != 0 && state.pieces_total >= cfg.max_drawn_pieces {
266
self.clear();
267
} else if cfg.depth_mode && state.layer_pieces_total >= cfg.layer_max_drawn_pieces {
268
self.darken_previous_layers();
0 commit comments