mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-15 07:43:20 +08:00
fix(地图遮罩): 修复小地图点渲染逻辑,增加对视口宽度为零的判断
This commit is contained in:
@@ -155,7 +155,7 @@ public sealed class MiniMapPointsCanvas : FrameworkElement
|
||||
private void RenderPoints()
|
||||
{
|
||||
using var dc = _drawingVisual.RenderOpen();
|
||||
if (_allPoints.Count == 0 || _viewportRect.IsEmpty)
|
||||
if (_allPoints.Count == 0 || _viewportRect.IsEmpty || _viewportRect.Width == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user