Skip to content

Commit 06e167b

Browse files
authored
Fix SVG drawing issues (#4012)
1 parent e09b85f commit 06e167b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Client/mods/deathmatch/logic/CClientVectorGraphicDisplay.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void CClientVectorGraphicDisplay::UpdateTexture()
103103
auto stride = static_cast<std::uint32_t>(LockedRect.Pitch);
104104

105105
Bitmap bitmap{surfaceData, pVectorGraphicItem->m_uiSizeX, pVectorGraphicItem->m_uiSizeY, stride};
106+
bitmap.clear(0);
106107
svgDocument->render(bitmap, transformationMatrix);
107108
UnpremultiplyBitmap(bitmap);
108109

0 commit comments

Comments
 (0)