Skip to content

Commit ee8c74b

Browse files
committed
v1.3.1
1 parent 808bafd commit ee8c74b

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
### [Download v1.3 (Windows)](https://github.com/MixelTe/ScreensaverParticles/releases/download/v1.3/ScreenSaverParticles.scr)
2-
### [Download v1.3 (Windows x86)](https://github.com/MixelTe/ScreensaverParticles/releases/download/v1.3/ScreenSaverParticles_x86.scr)
31
# Screensaver Particles
42

3+
### [Download v1.3.1 (Windows)](https://github.com/MixelTe/ScreensaverParticles/releases/download/v1.3.1/ScreenSaverParticles.scr)
4+
55
![](./docs/demo.gif)
66
![](./docs/screenrecord.gif)
77
![](./docs/screenshot1.png)

src/CPoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private void Move()
6262

6363
if (Bound)
6464
{
65-
var speed = _settings.DEV_Presentation_BoundSpeed / Program.SizeMul;
65+
var speed = _settings.DEV_Presentation_BoundSpeed / _settings.ClockSize / Program.SizeMul;
6666
var speedX = speed * (_xStart - X) / _maxDistanceWhenBound;
6767
var speedY = speed * (_yStart - Y) / _maxDistanceWhenBound;
6868
X += speedX;

src/PointsCreator.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public PointsCreator(int width, int height, Settings settings)
1616
_settings = settings;
1717
_widthScr = width;
1818
_heightScr = height;
19-
_space = (int)(_settings.DistanceMax * Program.SizeMul);
20-
var clockMaxWidth = (int)Math.Round(width * _settings.ClockSize - _space * 3);
19+
_space = (int)(_settings.DistanceMax * Program.SizeMul * _settings.ClockSize);
20+
var clockMaxWidth = Math.Max((int)Math.Round(width * _settings.ClockSize - _space * 3), 2);
2121
var clockMaxHeight = (int)Math.Round(height * _settings.ClockSize);
2222
int clockWidth, clockHeight;
2323
if (clockMaxHeight * 2 > clockMaxWidth)
@@ -264,6 +264,7 @@ private void CreateNum_Rects(RectangleF[] rects, int rs, int re, CPoint[] points
264264
private void CreatePoints(Rectangle rect, int rs, int re, CPoint[] points, int pos, bool newP, int visibleCount)
265265
{
266266
//Program.rectangles.Add(rect);
267+
if (rect.Width <= 0) return;
267268
var pointsCount = re - rs;
268269
var width = rect.Width / (float)visibleCount;
269270
var height = rect.Height / (float)visibleCount;

src/Properties/PublishProfiles/FolderProfile.pubxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<PropertyGroup>
55
<Configuration>Release</Configuration>
66
<Platform>Any CPU</Platform>
7-
<PublishDir>bin\Release\net8.0-windows\publish\win-x64\</PublishDir>
7+
<PublishDir>bin\Release\net8.0-windows\publish\win-x86\</PublishDir>
88
<PublishProtocol>FileSystem</PublishProtocol>
99
<_TargetId>Folder</_TargetId>
1010
<TargetFramework>net8.0-windows</TargetFramework>
11-
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
11+
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
1212
<SelfContained>true</SelfContained>
1313
<PublishSingleFile>true</PublishSingleFile>
1414
<PublishReadyToRun>true</PublishReadyToRun>

src/ScreenSaverParticles.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<ApplicationIcon>favicon.ico</ApplicationIcon>
1010
<Title>Screensaver Particles</Title>
1111
<Authors>Mixel Te</Authors>
12-
<AssemblyVersion>1.3</AssemblyVersion>
12+
<AssemblyVersion>1.3.1</AssemblyVersion>
1313
<Configurations>Debug;Release;Debug s</Configurations>
14-
<Version>1.3</Version>
14+
<Version>1.3.1</Version>
1515
</PropertyGroup>
1616

1717
<ItemGroup>

0 commit comments

Comments
 (0)