@ -707,7 +707,7 @@ void olc::ViewPort::DrawShadowStringDecal(const olc::vf2d& pos, std::string_view
vi2d imageSize = pge - > GetWrappedTextSize ( sText , width , scale ) ;
vi2d imageSize = pge - > GetWrappedTextSize ( sText , width , scale ) ;
Decal * newDecal = nullptr ;
Decal * newDecal = nullptr ;
if ( ! pge - > garbageCollector . count ( key ) ) {
if ( ! pge - > garbageCollector . count ( key ) ) {
newDecal = new Decal ( new Sprite ( imageSize . x / scale . x , imageSize . y / scale . x ) ) ;
newDecal = new Decal ( new Sprite ( imageSize . x / scale . x , imageSize . x / scale . x ) ) ;
pge - > garbageCollector [ key ] . decal = newDecal ;
pge - > garbageCollector [ key ] . decal = newDecal ;
} else {
} else {
newDecal = pge - > garbageCollector [ key ] . decal ;
newDecal = pge - > garbageCollector [ key ] . decal ;
@ -754,7 +754,7 @@ void olc::ViewPort::DrawShadowStringPropDecal(const olc::vf2d& pos, std::string_
vi2d imageSize = pge - > GetWrappedTextSizeProp ( sText , width , scale ) ;
vi2d imageSize = pge - > GetWrappedTextSizeProp ( sText , width , scale ) ;
Decal * newDecal = nullptr ;
Decal * newDecal = nullptr ;
if ( ! pge - > garbageCollector . count ( key ) ) {
if ( ! pge - > garbageCollector . count ( key ) ) {
newDecal = new Decal ( new Sprite ( imageSize . x / scale . x , imageSize . y / scale . x ) ) ;
newDecal = new Decal ( new Sprite ( imageSize . x / scale . x , imageSize . x / scale . x ) ) ;
pge - > garbageCollector [ key ] . decal = newDecal ;
pge - > garbageCollector [ key ] . decal = newDecal ;
} else {
} else {
newDecal = pge - > garbageCollector [ key ] . decal ;
newDecal = pge - > garbageCollector [ key ] . decal ;