summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdpPolyGlyphBlt.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-28 10:41:32 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-28 10:41:32 -0800
commit6beb2364f38f5e53b0acb744ffc8225c9c13e492 (patch)
treef3686148be0a7a912c039a57e1e284c6250e43d3 /xorg/server/module/rdpPolyGlyphBlt.c
parent022c1e31f9f9cee15d7264fb0f520c1a795b73ef (diff)
downloadxrdp-proprietary-6beb2364f38f5e53b0acb744ffc8225c9c13e492.tar.gz
xrdp-proprietary-6beb2364f38f5e53b0acb744ffc8225c9c13e492.zip
xorg: work on xorg driver
Diffstat (limited to 'xorg/server/module/rdpPolyGlyphBlt.c')
-rw-r--r--xorg/server/module/rdpPolyGlyphBlt.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/xorg/server/module/rdpPolyGlyphBlt.c b/xorg/server/module/rdpPolyGlyphBlt.c
index 7801a15e..e43e676b 100644
--- a/xorg/server/module/rdpPolyGlyphBlt.c
+++ b/xorg/server/module/rdpPolyGlyphBlt.c
@@ -32,6 +32,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "rdp.h"
#include "rdpDraw.h"
+#include "rdpClientCon.h"
+#include "rdpReg.h"
#define LOG_LEVEL 1
#define LLOGLN(_level, _args) \
@@ -56,7 +58,30 @@ rdpPolyGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
int x, int y, unsigned int nglyph,
CharInfoPtr *ppci, pointer pglyphBase)
{
+ rdpPtr dev;
+ RegionRec clip_reg;
+ RegionRec reg;
+ int cd;
+ BoxRec box;
+
LLOGLN(0, ("rdpPolyGlyphBlt:"));
+ dev = rdpGetDevFromScreen(pGC->pScreen);
+ dev->counts.rdpPolyGlyphBltCallCount++;
+ GetTextBoundingBox(pDrawable, pGC->font, x, y, nglyph, &box);
+ rdpRegionInit(&reg, &box, 0);
+ rdpRegionInit(&clip_reg, NullBox, 0);
+ cd = rdpDrawGetClip(dev, &clip_reg, pDrawable, pGC);
+ LLOGLN(10, ("rdpPolyGlyphBlt: cd %d", cd));
+ if (cd == XRDP_CD_CLIP)
+ {
+ rdpRegionIntersect(&reg, &clip_reg, &reg);
+ }
/* do original call */
rdpPolyGlyphBltOrg(pDrawable, pGC, x, y, nglyph, ppci, pglyphBase);
+ if (cd != XRDP_CD_NODRAW)
+ {
+ rdpClientConAddAllReg(dev, &reg, pDrawable);
+ }
+ rdpRegionUninit(&clip_reg);
+ rdpRegionUninit(&reg);
}