renderUnicodeLcdWrapped method

Pointer<SdlSurface> renderUnicodeLcdWrapped(
  1. Pointer<Uint16> text,
  2. int fg,
  3. int bg,
  4. int wrapLength,
)

Implementation

Pointer<SdlSurface> renderUnicodeLcdWrapped(
    Pointer<Uint16> text, int fg, int bg, int wrapLength) {
  var fgPointer = calloc<SdlColor>()..fromU32(fg);
  var bgPointer = calloc<SdlColor>()..fromU32(bg);
  // 2661
  var result = ttfRenderUnicodeLcdWrapped(
      this, text, fgPointer.ref, bgPointer.ref, wrapLength);
  calloc.free(fgPointer);
  calloc.free(bgPointer);
  return result;
}