mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[codec,nsc] update function docs
* add doxygen for functions * add support for scanline value 0
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user