diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-20 06:47:46 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-25 02:13:33 +0100 |
commit | 4d9488033f849132446ffb7840f1309fa38be8fd (patch) | |
tree | a8737261a62a54962acb4957b1a72c2a9e0c3eea /src/core/hle/service/nvflinger/buffer_queue_producer.cpp | |
parent | hle: nvflinger: buffer_queue_core: Declare default dtor. (diff) | |
download | yuzu-4d9488033f849132446ffb7840f1309fa38be8fd.tar yuzu-4d9488033f849132446ffb7840f1309fa38be8fd.tar.gz yuzu-4d9488033f849132446ffb7840f1309fa38be8fd.tar.bz2 yuzu-4d9488033f849132446ffb7840f1309fa38be8fd.tar.lz yuzu-4d9488033f849132446ffb7840f1309fa38be8fd.tar.xz yuzu-4d9488033f849132446ffb7840f1309fa38be8fd.tar.zst yuzu-4d9488033f849132446ffb7840f1309fa38be8fd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue_producer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp index 99f7ec1ac..5ea48431f 100644 --- a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp @@ -441,7 +441,7 @@ Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input, QueueBufferOutput* output) { s64 timestamp{}; bool is_auto_timestamp{}; - Rect crop; + Common::Rectangle<s32> crop; NativeWindowScalingMode scaling_mode{}; NativeWindowTransform transform; u32 sticky_transform_{}; @@ -509,9 +509,9 @@ Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input, crop.Bottom(), transform, scaling_mode); const std::shared_ptr<GraphicBuffer>& graphic_buffer(slots[slot].graphic_buffer); - Rect buffer_rect(graphic_buffer->Width(), graphic_buffer->Height()); - Rect cropped_rect; - crop.Intersect(buffer_rect, &cropped_rect); + Common::Rectangle<s32> buffer_rect(graphic_buffer->Width(), graphic_buffer->Height()); + Common::Rectangle<s32> cropped_rect; + [[maybe_unused]] const bool unused = crop.Intersect(buffer_rect, &cropped_rect); if (cropped_rect != crop) { LOG_ERROR(Service_NVFlinger, "crop rect is not contained within the buffer in slot {}", |