summaryrefslogtreecommitdiff
path: root/src/XrrCrtc.c
AgeCommit message (Collapse)AuthorFilesLines
2022-10-17Remove unnecessary casts of return values from malloc()Alan Coopersmith1-2/+2
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17Variable scope reductions as recommended by cppcheckAlan Coopersmith1-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-28Fix memory leak on error pathsTobias Stoeckmann1-0/+4
Introduced in commit a0df3e1c7728205e5c7650b2e6dce684139254a6 "Avoid out of boundary accesses on illegal responses" Signed-off-by: Julien Cristau <jcristau@debian.org>
2016-09-25Avoid out of boundary accesses on illegal responsesTobias Stoeckmann1-19/+64
The responses of the connected X server have to be properly checked to avoid out of boundary accesses that could otherwise be triggered by a malicious server. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
2015-03-31libXrandr: Clean up compiler warningsKeith Packard1-2/+2
This removes warnings about shadowing local variables with the same name, and type mismatches with _XRead32. Reviewed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
2013-05-03Use _XEatDataWords to avoid overflow of rep.length bit shiftingAlan Coopersmith1-3/+3
rep.length is a CARD32, so rep.length << 2 could overflow in 32-bit builds Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-09-06Constify a couple string arguments that are just copied, not modifiedAlan Coopersmith1-1/+1
Fixes compiler warnings when building app/xrandr: xrandr.c: In function ‘crtc_set_transform’: xrandr.c:1459:9: warning: passing argument 4 of ‘XRRSetCrtcTransform’ discards qualifiers from pointer target type X11/extensions/Xrandr.h:419:1: note: expected ‘char *’ but argument is of type ‘const char *’ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
2011-09-16Strip trailing whitespaceAlan Coopersmith1-12/+12
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-11-10GetCrtcGamma: Fix error handling.Adam Jackson1-6/+5
We didn't treat _XReply failure as fatal. Parsing an xError as a gamma ramp reply doesn't work that often. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2009-11-10GetCrtcGammaSize: Return 0, not garbage, on failureAdam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2009-01-30Janitor: make distcheck, compiler warnings, .gitignorePaulo Cesar Pereira de Andrade1-9/+3
Warning corrections are either unused symbols or using an integer as a pointer (generated by sparse).
2008-12-04Nuke config-timestamp for panning.Matthias Hopf1-2/+0
2008-12-04Panning supportMatthias Hopf1-0/+97
2008-11-28Set attr->pendingNparams in XRRGetCrtcTransform()transform-proposalJulien Cristau1-0/+1
2008-09-12Set NparamsFilter in XRRGetCrtcTransform return value.Keith Packard1-0/+1
Leaving this uninitialized isn't very helpful, and can cause segfaults.
2008-03-18Eliminate inverse matrix from randr transform protocolKeith Packard1-8/+0
It is easier, and potentially more precise, to compute the inverse in the server where everything can eventually be kept in floating point form.
2008-03-15Support CRTC Transform filtersKeith Packard1-74/+117
XRRGetCrtcTransform now returns a giant struct containing all of the transform and filter data. XRRSetCrtcTransform now accepts filter parameters.
2008-03-10Add support for new Transform requests.Keith Packard1-0/+156
2007-02-15Must pass size information in SetCrtcGamma request.Keith Packard1-0/+1
2006-12-30Failed to copy rotations from reply to XRRCrtcInfo.Keith Packard1-0/+1
XRRGetCrtcInfo was not moving the rotations value from the wire reply structure to the XRRCrtcInfo being returned, leaving the value uninitialized.
2006-11-30Add initial implementation of crtc gamma and mode adding requests.randr-1.2Keith Packard1-2/+94
They build. More testing seems indicated.
2006-11-16Remove RandR output options.Keith Packard1-3/+3
Options are to be implemented as properties instead.
2006-10-03Add mode origins and output options.Keith Packard1-3/+3
2006-09-20XRRGetScreenSizeRange returns Status. Lots more requests added.Keith Packard1-9/+112
XRRGetCrtcInfo XRRSetCrtcConfig XRRGetScreenSizeRange XRRSetScreenSize properties still to do.
2006-09-19Start update to 1.2, splitting code across multiple files.Keith Packard1-0/+75