Code cleanup

This commit is contained in:
Stone_Red
2026-06-18 23:57:37 +02:00
parent ba5d670d1a
commit 6f58eefb66
3 changed files with 23 additions and 31 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ public static class CanvasExtensions
for (int cy = 0; cy < height; cy++)
{
int startY = cy * targetHeight / height;
int endY = ((cy + 1) * targetHeight + height - 1) / height;
int endY = (((cy + 1) * targetHeight) + height - 1) / height;
for (int cx = 0; cx < width; cx++)
{
@@ -106,7 +106,7 @@ public static class CanvasExtensions
if (font.ConvertByteToBitAddress(byteValue, (cx % 8) + 1))
{
int startX = cx * targetWidth / width;
int endX = ((cx + 1) * targetWidth + width - 1) / width;
int endX = (((cx + 1) * targetWidth) + width - 1) / width;
for (int sy = startY; sy < endY; sy++)
{