summaryrefslogtreecommitdiff
path: root/src/XrrCrtc.c
AgeCommit message (Collapse)Author
2013-05-03Use _XEatDataWords to avoid overflow of rep.length bit shiftingAlan Coopersmith
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 Coopersmith
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 Coopersmith
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 Jackson
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 Jackson
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 Andrade
Warning corrections are either unused symbols or using an integer as a pointer (generated by sparse).
2008-12-04Nuke config-timestamp for panning.Matthias Hopf
2008-12-04Panning supportMatthias Hopf
2008-11-28Set attr->pendingNparams in XRRGetCrtcTransform()Julien Cristau
2008-09-12Set NparamsFilter in XRRGetCrtcTransform return value.Keith Packard
Leaving this uninitialized isn't very helpful, and can cause segfaults.
2008-03-18Eliminate inverse matrix from randr transform protocolKeith Packard
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 Packard
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 Packard
2007-02-15Must pass size information in SetCrtcGamma request.Keith Packard
2006-12-30Failed to copy rotations from reply to XRRCrtcInfo.Keith Packard
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.Keith Packard
They build. More testing seems indicated.
2006-11-16Remove RandR output options.Keith Packard
Options are to be implemented as properties instead.
2006-10-03Add mode origins and output options.Keith Packard
2006-09-20XRRGetScreenSizeRange returns Status. Lots more requests added.Keith Packard
XRRGetCrtcInfo XRRSetCrtcConfig XRRGetScreenSizeRange XRRSetScreenSize properties still to do.
2006-09-19Start update to 1.2, splitting code across multiple files.Keith Packard