|
|
|
@ -40,7 +40,18 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0)
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
|
void
|
|
|
|
|
static void
|
|
|
|
|
rdpImageGlyphBltPre(rdpPtr dev, rdpClientCon *clientCon,
|
|
|
|
|
int cd, RegionPtr clip_reg,
|
|
|
|
|
DrawablePtr pDrawable, GCPtr pGC,
|
|
|
|
|
int x, int y, unsigned int nglyph,
|
|
|
|
|
CharInfoPtr *ppci, pointer pglyphBase,
|
|
|
|
|
BoxPtr box)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
rdpImageGlyphBltOrg(DrawablePtr pDrawable, GCPtr pGC,
|
|
|
|
|
int x, int y, unsigned int nglyph,
|
|
|
|
|
CharInfoPtr *ppci, pointer pglyphBase)
|
|
|
|
@ -52,13 +63,68 @@ rdpImageGlyphBltOrg(DrawablePtr pDrawable, GCPtr pGC,
|
|
|
|
|
GC_OP_EPILOGUE(pGC);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
rdpImageGlyphBltPost(rdpPtr dev, rdpClientCon *clientCon,
|
|
|
|
|
int cd, RegionPtr clip_reg,
|
|
|
|
|
DrawablePtr pDrawable, GCPtr pGC,
|
|
|
|
|
int x, int y, unsigned int nglyph,
|
|
|
|
|
CharInfoPtr *ppci, pointer pglyphBase,
|
|
|
|
|
BoxPtr box)
|
|
|
|
|
{
|
|
|
|
|
RegionRec reg;
|
|
|
|
|
|
|
|
|
|
if (cd == XRDP_CD_NODRAW)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!XRDP_DRAWABLE_IS_VISIBLE(dev, pDrawable))
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
rdpRegionInit(®, box, 0);
|
|
|
|
|
if (cd == XRDP_CD_CLIP)
|
|
|
|
|
{
|
|
|
|
|
rdpRegionIntersect(®, clip_reg, ®);
|
|
|
|
|
}
|
|
|
|
|
rdpClientConAddDirtyScreenReg(dev, clientCon, ®);
|
|
|
|
|
rdpRegionUninit(®);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
|
void
|
|
|
|
|
rdpImageGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
|
|
|
|
|
int x, int y, unsigned int nglyph,
|
|
|
|
|
CharInfoPtr *ppci, pointer pglyphBase)
|
|
|
|
|
{
|
|
|
|
|
rdpPtr dev;
|
|
|
|
|
rdpClientCon *clientCon;
|
|
|
|
|
RegionRec clip_reg;
|
|
|
|
|
int cd;
|
|
|
|
|
BoxRec box;
|
|
|
|
|
|
|
|
|
|
LLOGLN(0, ("rdpImageGlyphBlt:"));
|
|
|
|
|
dev = rdpGetDevFromScreen(pGC->pScreen);
|
|
|
|
|
dev->counts.rdpImageGlyphBltCallCount++;
|
|
|
|
|
GetTextBoundingBox(pDrawable, pGC->font, x, y, nglyph, &box);
|
|
|
|
|
rdpRegionInit(&clip_reg, NullBox, 0);
|
|
|
|
|
cd = rdpDrawGetClip(dev, &clip_reg, pDrawable, pGC);
|
|
|
|
|
LLOGLN(10, ("rdpImageGlyphBlt: cd %d", cd));
|
|
|
|
|
clientCon = dev->clientConHead;
|
|
|
|
|
while (clientCon != NULL)
|
|
|
|
|
{
|
|
|
|
|
rdpImageGlyphBltPre(dev, clientCon, cd, &clip_reg, pDrawable, pGC,
|
|
|
|
|
x, y, nglyph, ppci, pglyphBase, &box);
|
|
|
|
|
clientCon = clientCon->next;
|
|
|
|
|
}
|
|
|
|
|
/* do original call */
|
|
|
|
|
rdpImageGlyphBltOrg(pDrawable, pGC, x, y, nglyph, ppci, pglyphBase);
|
|
|
|
|
clientCon = dev->clientConHead;
|
|
|
|
|
while (clientCon != NULL)
|
|
|
|
|
{
|
|
|
|
|
rdpImageGlyphBltPost(dev, clientCon, cd, &clip_reg, pDrawable, pGC,
|
|
|
|
|
x, y, nglyph, ppci, pglyphBase, &box);
|
|
|
|
|
clientCon = clientCon->next;
|
|
|
|
|
}
|
|
|
|
|
rdpRegionUninit(&clip_reg);
|
|
|
|
|
}
|
|
|
|
|