From c20dbff64410ce312112db5eb7e3f2930ed8ba86 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Thu, 14 Nov 2013 20:30:33 -0800 Subject: xorg: work on xrdp xorg driver --- xorg/server/module/rdpPolyFillRect.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'xorg/server/module/rdpPolyFillRect.c') diff --git a/xorg/server/module/rdpPolyFillRect.c b/xorg/server/module/rdpPolyFillRect.c index 1de9cee1..63898e23 100644 --- a/xorg/server/module/rdpPolyFillRect.c +++ b/xorg/server/module/rdpPolyFillRect.c @@ -32,11 +32,20 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "rdp.h" #include "rdpDraw.h" +#include "rdpClientCon.h" #define LOG_LEVEL 1 #define LLOGLN(_level, _args) \ do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0) +/******************************************************************************/ +static void +rdpPolyFillRectPre(rdpClientCon *clientCon, + DrawablePtr pDrawable, GCPtr pGC, int nrectFill, + xRectangle *prectInit) +{ +} + /******************************************************************************/ static void rdpPolyFillRectOrg(DrawablePtr pDrawable, GCPtr pGC, int nrectFill, @@ -49,12 +58,36 @@ rdpPolyFillRectOrg(DrawablePtr pDrawable, GCPtr pGC, int nrectFill, GC_OP_EPILOGUE(pGC); } +/******************************************************************************/ +static void +rdpPolyFillRectPost(rdpClientCon *clientCon, + DrawablePtr pDrawable, GCPtr pGC, int nrectFill, + xRectangle *prectInit) +{ +} + /******************************************************************************/ void rdpPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nrectFill, xRectangle *prectInit) { + rdpPtr dev; + rdpClientCon *clientCon; + LLOGLN(10, ("rdpPolyFillRect:")); + dev = rdpGetDevFromScreen(pGC->pScreen); + clientCon = dev->clientConHead; + while (clientCon != NULL) + { + rdpPolyFillRectPre(clientCon, pDrawable, pGC, nrectFill, prectInit); + clientCon = clientCon->next; + } /* do original call */ rdpPolyFillRectOrg(pDrawable, pGC, nrectFill, prectInit); + clientCon = dev->clientConHead; + while (clientCon != NULL) + { + rdpPolyFillRectPost(clientCon, pDrawable, pGC, nrectFill, prectInit); + clientCon = clientCon->next; + } } -- cgit v1.2.1