diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-01-24 10:00:52 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-01-24 10:00:52 -0800 |
commit | f39ba98a4ff48a2e6a12cb27027a0b06d139c55a (patch) | |
tree | 56706101981867986ea9c4b1f1ee0d78e15588ed /xorg/server/module/rdpImageText8.c | |
parent | 320ce8ba47d3d7c344b5de84844d1fa90e346fde (diff) | |
download | xrdp-proprietary-f39ba98a4ff48a2e6a12cb27027a0b06d139c55a.tar.gz xrdp-proprietary-f39ba98a4ff48a2e6a12cb27027a0b06d139c55a.zip |
xorg: work on xorg driver
Diffstat (limited to 'xorg/server/module/rdpImageText8.c')
-rw-r--r-- | xorg/server/module/rdpImageText8.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/xorg/server/module/rdpImageText8.c b/xorg/server/module/rdpImageText8.c index 28b45c2b..3b48cfa4 100644 --- a/xorg/server/module/rdpImageText8.c +++ b/xorg/server/module/rdpImageText8.c @@ -40,7 +40,7 @@ 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 rdpImageText8Pre(rdpPtr dev, rdpClientCon *clientCon, int cd, RegionPtr clip_reg, DrawablePtr pDrawable, GCPtr pGC, @@ -50,7 +50,7 @@ rdpImageText8Pre(rdpPtr dev, rdpClientCon *clientCon, } /******************************************************************************/ -void +static void rdpImageText8Org(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count, char *chars) { @@ -62,7 +62,7 @@ rdpImageText8Org(DrawablePtr pDrawable, GCPtr pGC, } /******************************************************************************/ -void +static void rdpImageText8Post(rdpPtr dev, rdpClientCon *clientCon, int cd, RegionPtr clip_reg, DrawablePtr pDrawable, GCPtr pGC, @@ -71,7 +71,7 @@ rdpImageText8Post(rdpPtr dev, rdpClientCon *clientCon, { RegionRec reg; - if (cd == 0) + if (cd == XRDP_CD_NODRAW) { return; } @@ -80,12 +80,12 @@ rdpImageText8Post(rdpPtr dev, rdpClientCon *clientCon, return; } rdpRegionInit(®, box, 0); - if (cd == 2) + if (cd == XRDP_CD_CLIP) { rdpRegionIntersect(®, clip_reg, ®); } rdpClientConAddDirtyScreenReg(dev, clientCon, ®); - RegionUninit(®); + rdpRegionUninit(®); } /******************************************************************************/ @@ -101,6 +101,7 @@ rdpImageText8(DrawablePtr pDrawable, GCPtr pGC, LLOGLN(10, ("rdpImageText8:")); dev = rdpGetDevFromScreen(pGC->pScreen); + dev->counts.rdpImageText8CallCount++; GetTextBoundingBox(pDrawable, pGC->font, x, y, count, &box); rdpRegionInit(&clip_reg, NullBox, 0); cd = rdpDrawGetClip(dev, &clip_reg, pDrawable, pGC); @@ -121,5 +122,5 @@ rdpImageText8(DrawablePtr pDrawable, GCPtr pGC, x, y, count, chars, &box); clientCon = clientCon->next; } - RegionUninit(&clip_reg); + rdpRegionUninit(&clip_reg); } |