aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/SurfaceFlinger
diff options
context:
space:
mode:
authorBruno Macabeus <macabeus@users.noreply.github.com>2021-01-01 14:03:33 -0800
committerGitHub <noreply@github.com>2021-01-01 19:03:33 -0300
commitb9fd7c8b23217c112dd80f76ff31da553cb6a1a1 (patch)
tree75d6ae4424b434400a4932aaeb46093e89e01af4 /Ryujinx.HLE/HOS/Services/SurfaceFlinger
parent532b8cad139ef611d7583788d05f3b35e45ee5a6 (diff)
Remove long <-> ulong casts from Nvservices code (#1848)
* Remove long <-> ulong casts from Nvservices code * review: fix lint
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/SurfaceFlinger')
-rw-r--r--Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs b/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs
index 1fef6860..cec37a58 100644
--- a/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs
+++ b/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs
@@ -308,11 +308,11 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
nvMapHandle = item.GraphicBuffer.Object.Buffer.NvMapId;
}
- int bufferOffset = item.GraphicBuffer.Object.Buffer.Surfaces[0].Offset;
+ ulong bufferOffset = (ulong)item.GraphicBuffer.Object.Buffer.Surfaces[0].Offset;
NvMapHandle map = NvMapDeviceFile.GetMapFromHandle(layer.Owner, nvMapHandle);
- ulong frameBufferAddress = (ulong)(map.Address + bufferOffset);
+ ulong frameBufferAddress = map.Address + bufferOffset;
Format format = ConvertColorFormat(item.GraphicBuffer.Object.Buffer.Surfaces[0].ColorFormat);