mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-04 23:15:08 +01:00
Adapt GetDefaultDisplayResolution to Push/Pop System
The PR: https://github.com/skyline-emu/skyline/pull/13 added in GetDefaultDisplayResolution but it used the older WriteValue function to write the data back. Moving to the Push/Pop system fixes this.
This commit is contained in:
parent
abaa404baa
commit
f7ad017726
@ -48,11 +48,11 @@ namespace skyline::service::am {
|
||||
|
||||
void ICommonStateGetter::GetDefaultDisplayResolution(type::KSession& session, ipc::IpcRequest& request, ipc::IpcResponse& response) {
|
||||
if (operationMode == OperationMode::Handheld) {
|
||||
response.WriteValue<u32>(constant::HandheldResolutionW);
|
||||
response.WriteValue<u32>(constant::HandheldResolutionH);
|
||||
response.Push<u32>(constant::HandheldResolutionW);
|
||||
response.Push<u32>(constant::HandheldResolutionH);
|
||||
} else if (operationMode == OperationMode::Docked) {
|
||||
response.WriteValue<u32>(constant::DockedResolutionW);
|
||||
response.WriteValue<u32>(constant::DockedResolutionH);
|
||||
response.Push<u32>(constant::DockedResolutionW);
|
||||
response.Push<u32>(constant::DockedResolutionH);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user