Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 895cea4

Browse files
Merge pull request #7144 from livecodeian/bugfix-tilecache-group-keyfocus
[[ Bug 22322 ]] Fix graphical artefacts after removing focus from a group on mobile
2 parents 5e28e82 + 76b901a commit 895cea4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

docs/notes/bugfix-22322.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix graphical artefacts after removing focus from a group when using acceleratedRendering on mobile

engine/src/group.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,12 @@ Boolean MCGroup::doubleup(uint2 which)
956956
return False;
957957
}
958958

959+
uint2 MCGroup::gettransient(void) const
960+
{
961+
// OVERRIDE - groups do not have a transient focus border
962+
return 0;
963+
}
964+
959965
void MCGroup::applyrect(const MCRectangle &nrect)
960966
{
961967
bool t_size_changed;

engine/src/group.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class MCGroup : public MCControl, public MCMixinObjectHandle<MCGroup>
9090
virtual Boolean mup(uint2 which, bool p_release);
9191
virtual Boolean doubledown(uint2 which);
9292
virtual Boolean doubleup(uint2 which);
93+
virtual uint2 gettransient(void) const;
9394
virtual void applyrect(const MCRectangle &nrect);
9495

9596
virtual void removereferences(void);

0 commit comments

Comments
 (0)