mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Removed duplicated format variable.
This commit is contained in:
@@ -67,7 +67,6 @@ struct _NSC_CONTEXT
|
||||
UINT16 height;
|
||||
BYTE* BitmapData;
|
||||
UINT32 BitmapDataLength;
|
||||
UINT32 pixel_format;
|
||||
|
||||
BYTE* Planes;
|
||||
UINT32 PlaneByteCount[4];
|
||||
|
||||
@@ -932,7 +932,8 @@ static BOOL clear_decompress_glyph_data(CLEAR_CONTEXT* clear,
|
||||
|
||||
if ((nWidth * nHeight) > glyphEntry->count)
|
||||
{
|
||||
WLog_ERR(TAG, "(nWidth %"PRIu32" * nHeight %"PRIu32") > glyphEntry->count %"PRIu32"", nWidth, nHeight,
|
||||
WLog_ERR(TAG, "(nWidth %"PRIu32" * nHeight %"PRIu32") > glyphEntry->count %"PRIu32"", nWidth,
|
||||
nHeight,
|
||||
glyphEntry->count);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -337,7 +337,9 @@ void nsc_context_free(NSC_CONTEXT* context)
|
||||
|
||||
BOOL nsc_context_set_pixel_format(NSC_CONTEXT* context, UINT32 pixel_format)
|
||||
{
|
||||
context->pixel_format = pixel_format;
|
||||
if (!context)
|
||||
return FALSE;
|
||||
|
||||
context->format = pixel_format;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ static void nsc_encode_argb_to_aycocg(NSC_CONTEXT* context, const BYTE* data,
|
||||
|
||||
for (x = 0; x < context->width; x++)
|
||||
{
|
||||
switch (context->pixel_format)
|
||||
switch (context->format)
|
||||
{
|
||||
case PIXEL_FORMAT_BGRX32:
|
||||
b_val = *src++;
|
||||
|
||||
@@ -74,7 +74,7 @@ static void nsc_encode_argb_to_aycocg_sse2(NSC_CONTEXT* context,
|
||||
|
||||
for (x = 0; x < context->width; x += 8)
|
||||
{
|
||||
switch (context->pixel_format)
|
||||
switch (context->format)
|
||||
{
|
||||
case PIXEL_FORMAT_BGRX32:
|
||||
b_val = _mm_set_epi16(*(src + 28), *(src + 24), *(src + 20), *(src + 16),
|
||||
|
||||
Reference in New Issue
Block a user