summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-05 22:20:04 +0100
committerLioncash <mathew1800@gmail.com>2019-02-06 00:03:28 +0100
commitef073ff117752274f374443756652fdda9c44773 (patch)
tree3453e2c21a4aec602f5ee9a308cad23463d9dad3 /src/core/hle/service/am
parentservice/nvflinger: Mark FindVsyncEvent() as a const member function (diff)
downloadyuzu-ef073ff117752274f374443756652fdda9c44773.tar
yuzu-ef073ff117752274f374443756652fdda9c44773.tar.gz
yuzu-ef073ff117752274f374443756652fdda9c44773.tar.bz2
yuzu-ef073ff117752274f374443756652fdda9c44773.tar.lz
yuzu-ef073ff117752274f374443756652fdda9c44773.tar.xz
yuzu-ef073ff117752274f374443756652fdda9c44773.tar.zst
yuzu-ef073ff117752274f374443756652fdda9c44773.zip
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r--src/core/hle/service/am/am.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index d1cbe0e44..3f009d2b7 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -322,14 +322,15 @@ void ISelfController::SetScreenShotImageOrientation(Kernel::HLERequestContext& c
void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
+
// TODO(Subv): Find out how AM determines the display to use, for now just
// create the layer in the Default display.
- u64 display_id = nvflinger->OpenDisplay("Default");
- u64 layer_id = nvflinger->CreateLayer(display_id);
+ const auto display_id = nvflinger->OpenDisplay("Default");
+ const auto layer_id = nvflinger->CreateLayer(*display_id);
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);
- rb.Push(layer_id);
+ rb.Push(*layer_id);
}
void ISelfController::SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx) {