diff --git a/src/libnx/graphics.nim b/src/libnx/graphics.nim index f3b9026..78996d4 100644 --- a/src/libnx/graphics.nim +++ b/src/libnx/graphics.nim @@ -136,7 +136,7 @@ proc resetCrop*() = ## / Wrapper for \ref gfxConfigureCrop. Use this to set the resolution, within the ## bounds of the maximum resolution. Use all-zero input to reset to default. proc setCropResolution*(width, height: uint32) = - gfxConfigureResolution(width.s32, height.s32) + setCrop(0, 0, width, height) ## / If enabled, \ref gfxConfigureResolution will be used with the input resolution for ## the current OperationMode. Then \ref gfxConfigureResolution will automatically be diff --git a/src/libnx/service.nim b/src/libnx/service.nim index 72b9dfe..589cc84 100644 --- a/src/libnx/service.nim +++ b/src/libnx/service.nim @@ -8,6 +8,8 @@ type Service* = ref object serv: sm.Service +proc getSmService*(serv: Service): sm.Service = + serv.serv proc newService*(serv: sm.Service): Service = result = Service(serv: serv)