[codec,nsc] update function docs

* add doxygen for functions
* add support for scanline value 0
This commit is contained in:
Armin Novak
2026-02-17 09:15:03 +01:00
parent 169971607c
commit f3d23da0ae
2 changed files with 39 additions and 6 deletions

View File

@@ -463,6 +463,9 @@ BOOL nsc_compose_message(NSC_CONTEXT* WINPR_RESTRICT context, wStream* WINPR_RES
if (!context || !s || !data)
return FALSE;
if (scanline == 0)
scanline = width * FreeRDPGetBytesPerPixel(context->format);
context->width = WINPR_ASSERTING_INT_CAST(UINT16, width);
context->height = WINPR_ASSERTING_INT_CAST(UINT16, height);