Removed duplicated format variable.

This commit is contained in:
Armin Novak
2017-01-10 10:23:49 +01:00
parent 8fd926f085
commit c444ccbe6e
5 changed files with 7 additions and 5 deletions

View File

@@ -67,7 +67,6 @@ struct _NSC_CONTEXT
UINT16 height;
BYTE* BitmapData;
UINT32 BitmapDataLength;
UINT32 pixel_format;
BYTE* Planes;
UINT32 PlaneByteCount[4];

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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++;

View File

@@ -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),