Tweak service and graphics
This commit is contained in:
parent
459787fd36
commit
a504979f1e
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue