Skip to content

Commit 88801ae

Browse files
clip works on non round rect
1 parent a733ae0 commit 88801ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flamui/Drawing/GlCanvas.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ private void DrawGlyph(FontAtlas fontAtlas, AtlasGlyphInfo atlasGlyphInfo, GpuTe
183183

184184
public void ClipRect(float x, float y, float width, float height)
185185
{
186-
//todo
186+
//todo, we can to more efficient clipping if it isn't a rounded rect....
187+
ClipRoundedRect(x, y, width, height, 0);
187188
}
188189

189190
public void ClipRoundedRect(float x, float y, float width, float height, float radius)

0 commit comments

Comments
 (0)