# NNS_G2dRepeatXinCellSpace / NNS_G2dRepeatYinCellSpace

## Syntax

      #include <nnsys/g2d/fmt/g2d_Cell_data.h>

          static inline  s16 NNS_G2dRepeatXinCellSpace( s16 srcX );
          static inline  s16 NNS_G2dRepeatYinCellSpace( s16 srcY )

## Arguments

`srcX, srcY` | [IN] s16 position coordinate values

## Return Values

Returns the `s16` value with the repeat process that is applied to the value range that can be obtained by OBJ in the cell.

## Description

Returns the `s16` value to which the repeat process was applied to the value range that can be obtained by the OBJ in the cell. Specifically, it corrects values to repeat in the range of -256 to 256. With versions earlier than the 2005/06/06 version, the value has been corrected to repeat in the range of -128 to 127. By defining `NNS_G2D_LIMIT_CELL_X_128` in `$(TWLSYSTEM_ROOT)/include/nnsys/g2d/g2d_config.h` and rebuilding the library, it is possible to revert to functionality found in earlier versions.

## See Also

None.

## Revision History

2008/06/20 Changed environment variable name from `NITROSYSTEM_ROOT` to `TWLSYSTEM_ROOT`.
2004/10/12 Initial version.

CONFIDENTIAL