|
|
@ -67,7 +67,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
#define RDPMIN(_val1, _val2) ((_val1) < (_val2) ? (_val1) : (_val2))
|
|
|
|
#define RDPMIN(_val1, _val2) ((_val1) < (_val2) ? (_val1) : (_val2))
|
|
|
|
#define RDPMAX(_val1, _val2) ((_val1) < (_val2) ? (_val2) : (_val1))
|
|
|
|
#define RDPMAX(_val1, _val2) ((_val1) < (_val2) ? (_val2) : (_val1))
|
|
|
|
#define RDPCLAMP(_val, _lo, _hi) \
|
|
|
|
#define RDPCLAMP(_val, _lo, _hi) \
|
|
|
|
(_val) < (_lo) ? (_lo) : (_val) > (_hi) ? (_hi) : (_val)
|
|
|
|
(_val) < (_lo) ? (_lo) : (_val) > (_hi) ? (_hi) : (_val)
|
|
|
|
|
|
|
|
|
|
|
|
#define XRDP_CD_NODRAW 0
|
|
|
|
#define XRDP_CD_NODRAW 0
|
|
|
|
#define XRDP_CD_NOCLIP 1
|
|
|
|
#define XRDP_CD_NOCLIP 1
|
|
|
@ -277,63 +277,63 @@ typedef struct _rdpGCRec * rdpGCPtr;
|
|
|
|
|
|
|
|
|
|
|
|
struct urdp_draw_item_fill
|
|
|
|
struct urdp_draw_item_fill
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int opcode;
|
|
|
|
int opcode;
|
|
|
|
int fg_color;
|
|
|
|
int fg_color;
|
|
|
|
int bg_color;
|
|
|
|
int bg_color;
|
|
|
|
int pad0;
|
|
|
|
int pad0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct urdp_draw_item_img
|
|
|
|
struct urdp_draw_item_img
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int opcode;
|
|
|
|
int opcode;
|
|
|
|
int pad0;
|
|
|
|
int pad0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct urdp_draw_item_line
|
|
|
|
struct urdp_draw_item_line
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int opcode;
|
|
|
|
int opcode;
|
|
|
|
int fg_color;
|
|
|
|
int fg_color;
|
|
|
|
int bg_color;
|
|
|
|
int bg_color;
|
|
|
|
int width;
|
|
|
|
int width;
|
|
|
|
xSegment* segs;
|
|
|
|
xSegment* segs;
|
|
|
|
int nseg;
|
|
|
|
int nseg;
|
|
|
|
int flags;
|
|
|
|
int flags;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct urdp_draw_item_scrblt
|
|
|
|
struct urdp_draw_item_scrblt
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int srcx;
|
|
|
|
int srcx;
|
|
|
|
int srcy;
|
|
|
|
int srcy;
|
|
|
|
int dstx;
|
|
|
|
int dstx;
|
|
|
|
int dsty;
|
|
|
|
int dsty;
|
|
|
|
int cx;
|
|
|
|
int cx;
|
|
|
|
int cy;
|
|
|
|
int cy;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct urdp_draw_item_text
|
|
|
|
struct urdp_draw_item_text
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int opcode;
|
|
|
|
int opcode;
|
|
|
|
int fg_color;
|
|
|
|
int fg_color;
|
|
|
|
struct rdp_text* rtext; /* in rdpglyph.h */
|
|
|
|
struct rdp_text* rtext; /* in rdpglyph.h */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
union urdp_draw_item
|
|
|
|
union urdp_draw_item
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct urdp_draw_item_fill fill;
|
|
|
|
struct urdp_draw_item_fill fill;
|
|
|
|
struct urdp_draw_item_img img;
|
|
|
|
struct urdp_draw_item_img img;
|
|
|
|
struct urdp_draw_item_line line;
|
|
|
|
struct urdp_draw_item_line line;
|
|
|
|
struct urdp_draw_item_scrblt scrblt;
|
|
|
|
struct urdp_draw_item_scrblt scrblt;
|
|
|
|
struct urdp_draw_item_text text;
|
|
|
|
struct urdp_draw_item_text text;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct rdp_draw_item
|
|
|
|
struct rdp_draw_item
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int type; /* RDI_FILL, RDI_IMGLL, ... */
|
|
|
|
int type; /* RDI_FILL, RDI_IMGLL, ... */
|
|
|
|
int flags;
|
|
|
|
int flags;
|
|
|
|
struct rdp_draw_item* prev;
|
|
|
|
struct rdp_draw_item* prev;
|
|
|
|
struct rdp_draw_item* next;
|
|
|
|
struct rdp_draw_item* next;
|
|
|
|
RegionPtr reg;
|
|
|
|
RegionPtr reg;
|
|
|
|
union urdp_draw_item u;
|
|
|
|
union urdp_draw_item u;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define XRDP_USE_COUNT_THRESHOLD 1
|
|
|
|
#define XRDP_USE_COUNT_THRESHOLD 1
|
|
|
|