64 bit big endian fixes
This commit is contained in:
parent
285a1139c1
commit
64bdbed95f
@ -25,6 +25,14 @@
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
#define CVAL(p) ((unsigned char)(*(p++)))
|
#define CVAL(p) ((unsigned char)(*(p++)))
|
||||||
|
|
||||||
|
#if defined(B_ENDIAN)
|
||||||
|
#define EIK0 1
|
||||||
|
#define EIK1 0
|
||||||
|
#else
|
||||||
|
#define EIK0 0
|
||||||
|
#define EIK1 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
#define REPEAT(statement) \
|
#define REPEAT(statement) \
|
||||||
{ \
|
{ \
|
||||||
@ -395,16 +403,16 @@ bitmap_decompress2(char* output, int width, int height, char* input, int size)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 8: /* Bicolor */
|
case 8: /* Bicolor */
|
||||||
color1[0] = CVAL(input);
|
color1[EIK0] = CVAL(input);
|
||||||
color1[1] = CVAL(input);
|
color1[EIK1] = CVAL(input);
|
||||||
case 3: /* Color */
|
case 3: /* Color */
|
||||||
color2[0] = CVAL(input);
|
color2[EIK0] = CVAL(input);
|
||||||
color2[1] = CVAL(input);
|
color2[EIK1] = CVAL(input);
|
||||||
break;
|
break;
|
||||||
case 6: /* SetMix/Mix */
|
case 6: /* SetMix/Mix */
|
||||||
case 7: /* SetMix/FillOrMix */
|
case 7: /* SetMix/FillOrMix */
|
||||||
mix[0] = CVAL(input);
|
mix[EIK0] = CVAL(input);
|
||||||
mix[1] = CVAL(input);
|
mix[EIK1] = CVAL(input);
|
||||||
opcode -= 5;
|
opcode -= 5;
|
||||||
break;
|
break;
|
||||||
case 9: /* FillOrMix_1 */
|
case 9: /* FillOrMix_1 */
|
||||||
@ -534,8 +542,8 @@ bitmap_decompress2(char* output, int width, int height, char* input, int size)
|
|||||||
case 4: /* Copy */
|
case 4: /* Copy */
|
||||||
REPEAT
|
REPEAT
|
||||||
(
|
(
|
||||||
line[x * 2 + 0] = CVAL(input);
|
line[x * 2 + EIK0] = CVAL(input);
|
||||||
line[x * 2 + 1] = CVAL(input);
|
line[x * 2 + EIK1] = CVAL(input);
|
||||||
)
|
)
|
||||||
break;
|
break;
|
||||||
case 8: /* Bicolor */
|
case 8: /* Bicolor */
|
||||||
|
@ -108,7 +108,7 @@ rdp_orders_in_present(struct stream* s, int* present,
|
|||||||
static void APP_CC
|
static void APP_CC
|
||||||
rdp_orders_in_coord(struct stream* s, int* coord, int delta)
|
rdp_orders_in_coord(struct stream* s, int* coord, int delta)
|
||||||
{
|
{
|
||||||
char change;
|
signed char change;
|
||||||
|
|
||||||
if (delta)
|
if (delta)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user