diff options
Diffstat (limited to 'xorg-server/render')
-rw-r--r-- | xorg-server/render/makefile | 15 | ||||
-rw-r--r-- | xorg-server/render/mipict.c | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | xorg-server/render/render.c | 10 |
3 files changed, 21 insertions, 6 deletions
diff --git a/xorg-server/render/makefile b/xorg-server/render/makefile new file mode 100644 index 000000000..86d66a6d3 --- /dev/null +++ b/xorg-server/render/makefile @@ -0,0 +1,15 @@ +
+LIBRARY=librender
+
+CSRCS = \
+ animcur.c \
+ filter.c \
+ glyph.c \
+ matrix.c \
+ miindex.c \
+ mipict.c \
+ mirect.c \
+ mitrap.c \
+ mitri.c \
+ picture.c \
+ render.c
diff --git a/xorg-server/render/mipict.c b/xorg-server/render/mipict.c index a72510480..62d18cd04 100644 --- a/xorg-server/render/mipict.c +++ b/xorg-server/render/mipict.c @@ -226,7 +226,7 @@ miChangePictureFilter(PicturePtr pPicture, #define BOUND(v) (INT16) ((v) < MINSHORT ? MINSHORT : (v) > MAXSHORT ? MAXSHORT : (v)) -static inline pixman_bool_t +static __inline pixman_bool_t miClipPictureReg(pixman_region16_t * pRegion, pixman_region16_t * pClip, int dx, int dy) { diff --git a/xorg-server/render/render.c b/xorg-server/render/render.c index 723f380c2..68e79aa39 100644..100755 --- a/xorg-server/render/render.c +++ b/xorg-server/render/render.c @@ -268,11 +268,7 @@ static int ProcRenderQueryVersion(ClientPtr client) { RenderClientPtr pRenderClient = GetRenderClient(client); - xRenderQueryVersionReply rep = { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = 0 - }; + xRenderQueryVersionReply rep; REQUEST(xRenderQueryVersionReq); @@ -281,6 +277,10 @@ ProcRenderQueryVersion(ClientPtr client) pRenderClient->major_version = stuff->majorVersion; pRenderClient->minor_version = stuff->minorVersion; + memset(&rep, 0, sizeof(xRenderQueryVersionReply)); + rep.type = X_Reply; + rep.sequenceNumber = client->sequence; + rep.length = 0; if ((stuff->majorVersion * 1000 + stuff->minorVersion) < (SERVER_RENDER_MAJOR_VERSION * 1000 + SERVER_RENDER_MINOR_VERSION)) { rep.majorVersion = stuff->majorVersion; |