Tweak service and graphics

This commit is contained in:
Joey Yakimowich-Payne 2018-06-25 21:17:48 +09:00
commit a504979f1e
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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)