mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-09 12:06:24 +00:00
Fixed wrong offset validation in the Ambilight-example
This commit is contained in:
1 parent
deb043b6b2
commit
633636efda
1 file changed
+1
-1
@@ -43,7 +43,7 @@ namespace Example_Ambilight_full
|
||||
|
||||
// DarthAffe 06.11.2016: Validate offsets - rounding errors might cause problems
|
||||
widthOffset = Math.Max(0, Math.Min(SourceWidth - widthPixels, widthOffset));
|
||||
heightOffset = Math.Max(0, Math.Min(EffectiveSourceHeight - heightPixels, heightOffset));
|
||||
heightOffset = Math.Max(0, Math.Min(SourceHeight - heightPixels, heightOffset));
|
||||
|
||||
for (int y = 0; y < heightPixels; y += Increment)
|
||||
for (int x = 0; x < widthPixels; x += Increment)
|
||||
|
||||
Reference in new issue
Block a user