diff options
| author | Léo Lam <leo@leolam.fr> | 2020-04-28 13:36:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-28 13:36:21 +0200 |
| commit | 0fe4985f8d9ca2f52a6a7b367e6dea3e5e97ba00 (patch) | |
| tree | dcfe9c7d8db12bda0180b284c202ae34e859d917 /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | d11a83e205ea187bc6dbc7c5c9162b3e5c087c26 (diff) | |
| parent | 81f8099cc674ab1146a2bd151f4f29269de12c33 (diff) | |
Merge pull request #8689 from howard0su/cleanup_sign
Remove warnings of -Wsign-compare
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 4bf988e43c..dcf0dd264a 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -241,19 +241,19 @@ static void BPWritten(const BPCmd& bp) // known for configuring these out-of-range copies. int copy_width = srcRect.GetWidth(); int copy_height = srcRect.GetHeight(); - if (srcRect.right > EFB_WIDTH || srcRect.bottom > EFB_HEIGHT) + if (srcRect.right > s32(EFB_WIDTH) || srcRect.bottom > s32(EFB_HEIGHT)) { WARN_LOG(VIDEO, "Oversized EFB copy: %dx%d (offset %d,%d stride %u)", copy_width, copy_height, srcRect.left, srcRect.top, destStride); // Adjust the copy size to fit within the EFB. So that we don't end up with a stretched image, // instead of clamping the source rectangle, we reduce it by the over-sized amount. - if (copy_width > EFB_WIDTH) + if (copy_width > s32(EFB_WIDTH)) { srcRect.right -= copy_width - EFB_WIDTH; copy_width = EFB_WIDTH; } - if (copy_height > EFB_HEIGHT) + if (copy_height > s32(EFB_HEIGHT)) { srcRect.bottom -= copy_height - EFB_HEIGHT; copy_height = EFB_HEIGHT; |
