summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdpPolyGlyphBlt.c
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2014-03-02 01:39:34 +0200
committerspeidy <speidy@gmail.com>2014-03-02 01:39:34 +0200
commit1f1e803140ea96b81ac4700a6759a9617d0f2fd2 (patch)
treee9d2761170ec2461f178a595482507700879deee /xorg/server/module/rdpPolyGlyphBlt.c
parent80204e2536327f46610d5925c552aff235e9f447 (diff)
parent0b18909f269ee582ec22bb808839c4434a0da3e7 (diff)
downloadxrdp-proprietary-1f1e803140ea96b81ac4700a6759a9617d0f2fd2.tar.gz
xrdp-proprietary-1f1e803140ea96b81ac4700a6759a9617d0f2fd2.zip
Merge ../../neutrinolabs/xrdp into fastpath
Conflicts: libxrdp/libxrdp.c libxrdp/libxrdp.h libxrdp/xrdp_iso.c libxrdp/xrdp_sec.c libxrdp/xrdp_tcp.c xrdp/xrdp.ini
Diffstat (limited to 'xorg/server/module/rdpPolyGlyphBlt.c')
-rw-r--r--xorg/server/module/rdpPolyGlyphBlt.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/xorg/server/module/rdpPolyGlyphBlt.c b/xorg/server/module/rdpPolyGlyphBlt.c
index f1fae911..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)
{
- LLOGLN(10, ("rdpPolyGlyphBlt:"));
+ 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);
}