aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvflinger/buffer_queue.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-05-16 13:47:55 +1000
committerDavid Marcec <dmarcecguzman@gmail.com>2020-05-16 13:47:55 +1000
commit97c023e3f0ce16b56d4d3697d70309d00738dc89 (patch)
treec15731d966908aee1ff459871acece876f962c1c /src/core/hle/service/nvflinger/buffer_queue.cpp
parent738e2cca7cf81e4e0e8d17cbc61a60d35d86ee45 (diff)
nv_flinger: Use enum for pixel format instead of u32
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_queue.cpp')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp
index f1e3d832a9..caca80dde2 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp
@@ -138,9 +138,7 @@ u32 BufferQueue::Query(QueryType type) {
switch (type) {
case QueryType::NativeWindowFormat:
- // TODO(Subv): Use an enum for this
- static constexpr u32 FormatABGR8 = 1;
- return FormatABGR8;
+ return static_cast<u32>(PixelFormat::RGBA8888);
}
UNIMPLEMENTED();