605 |
if (present & 0x002000) |
if (present & 0x002000) |
606 |
in_uint16_le(s, os->boxbottom); |
in_uint16_le(s, os->boxbottom); |
607 |
|
|
608 |
|
if (present & 0x004000) /* fix for connecting to a server that */ |
609 |
|
in_uint8s(s, 10); /* was disconnected with mstsc.exe */ |
610 |
|
/* 0x008000, 0x020000, and 0x040000 are present too ??? */ |
611 |
|
|
612 |
if (present & 0x080000) |
if (present & 0x080000) |
613 |
in_uint16_le(s, os->x); |
in_uint16_le(s, os->x); |
614 |
|
|
663 |
inverted = xmalloc(width * height * Bpp); |
inverted = xmalloc(width * height * Bpp); |
664 |
for (y = 0; y < height; y++) |
for (y = 0; y < height; y++) |
665 |
{ |
{ |
666 |
memcpy(&inverted[(height - y - 1) * (width * Bpp)], &data[y * (width * Bpp)], width * Bpp); |
memcpy(&inverted[(height - y - 1) * (width * Bpp)], &data[y * (width * Bpp)], |
667 |
|
width * Bpp); |
668 |
} |
} |
669 |
|
|
670 |
bitmap = ui_create_bitmap(width, height, inverted); |
bitmap = ui_create_bitmap(width, height, inverted); |