summaryrefslogtreecommitdiff
path: root/src/XrrOutput.c
AgeCommit message (Collapse)Author
2022-10-17Remove unnecessary casts of return values from malloc()Alan Coopersmith
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2016-09-25Avoid out of boundary accesses on illegal responsesTobias Stoeckmann
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 Packard
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 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-02-29Fill in nameLen in XRROutputInfoDaniel Stone
Even though it probably makes more sense to just strlen() the name, for some reason there's a nameLen field in XRROutputInfo, so might as well actually fill it in. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reported-by: Leif Middelschulte <leif.middelschulte@gmail.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-01-30Send X_RRGetOutputPrimary when making an X_RRGetOutputPrimary requestKeith Packard
Using X_RRGetOutputProperty does not yield success here. Signed-off-by: Keith Packard <keithp@keithp.com>
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-17Fix type of GetReq() argument.Adam Jackson
2008-12-17Use RRSimpleCheckExtension in functions returning voidAdam Jackson
2008-12-08Add [GS]etOutputPrimaryAdam Jackson
2006-11-20Change properties to have a pending value and report valid values.Keith Packard
Pending values are transferred to current values at mode set, allowing a queue of values to accrue in preparation for the modeset operation while still reporting valid 'current' values for applications. The set of valid values is also available so applications can present a reasonable list to the user during configuration.
2006-11-16Remove RandR output options.Keith Packard
Options are to be implemented as properties instead.
2006-11-09Return the right actual property type for XRRGetOutputProperty.Eric Anholt
2006-11-09Add support for various output property requests.Eric Anholt
These should be reviewed by someone with proto clue, which I'm generally lacking.
2006-11-01Moving physical size from mode to output.Keith Packard
Follows protocol change which places physical size information in the output rather than (inappropriately) in each mode line.
2006-10-04Remove mode origins. Add preferred mode count.Keith Packard
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