mirror of
https://github.com/rt64/rt64.git
synced 2024-12-26 03:15:44 +00:00
fix compilation issue
This commit is contained in:
parent
097cb03d0a
commit
a870b2a7bd
@ -424,7 +424,7 @@ namespace RT64 {
|
||||
scaledWidth = uint32_t(expandedColorWidthClamped);
|
||||
scaledHeight = uint32_t(colorHeightClamped);
|
||||
|
||||
const long expandedPixels = std::labs(scaledWidth - nativeColorWidthClamped) / 2;
|
||||
const long expandedPixels = std::labs(long(scaledWidth) - nativeColorWidthClamped) / 2;
|
||||
const long nativeAlignment = std::max(lround(resolutionScale.y), 1L);
|
||||
misalignmentX = (nativeAlignment - (expandedPixels % nativeAlignment)) % nativeAlignment;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user