Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/notes/bugfix-21443.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix groups sometimes not redrawing when scrolled
10 changes: 3 additions & 7 deletions engine/src/redraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,14 +599,10 @@ void MCControl::layer_dirtyeffectiverect(const MCRectangle& p_effective_rect, bo
MCRectangle32 t_device_rect;
t_device_rect = MCRectangle32GetTransformedBounds(t_dirty_rect, t_transform);

// Notify any tilecache of the changes.
if (t_tilecache != nil)
// Notify any tilecache of the changes
// If the layer id is zero, there is nothing to do.
if (t_tilecache != nil && t_control -> m_layer_id != 0)
{
// We must be in tile-cache mode with a top-level control, but if the layer
// id is zero, there is nothing to do.
if (t_control -> m_layer_id == 0)
return;

// How we handle the layer depends on whether it is a sprite or not.
if (!t_control -> layer_issprite())
{
Expand Down