Bitmap brush - Fixed samples being taken out of bounds

Effects UI - Fixed effects list not always hiding on click
Effects UI - Fixed transition origin not always updating
This commit is contained in:
SpoinkyNL committed 2020-06-16 20:01:02 +02:00
1 parent 480fae02b9
commit 8eed347de5
5 files changed
+74 -50

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ namespace Artemis.Core.RGB.NET
{
var x = left + horizontalSteps * horizontalStep;
var y = top + verticalSteps * verticalStep;
if (x < 0 || x > bitmapWidth || y < 0 || y > bitmapHeight)
if (x < 0 || x >= bitmapWidth || y < 0 || y >= bitmapHeight)
continue;
var color = pixmap.GetPixelColor(x, y);