aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Cursor.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Encapsulate PixelBuffer internal detailsPierre Ossman2019-11-151-2/+1
| | | | | | Don't allow subclasses to just override dimensions or buffer details directly and instead force them to go via methods. This allows us to do sanity checks on the new values and catch bugs and attacks.
* Use larger integers for the cursor ditheringPierre Ossman2018-11-231-6/+6
| | | | | We need a larger range to handle the temporary overflow caused by the Floyd-Steinberg dithering.
* Remove variable length arraysPierre Ossman2018-11-071-17/+18
| | | | | These are not allowed in C++, and have been made optional in C11. So let's just get rid of them and any issues they may cause.
* Don't try to render cursors with no sizePierre Ossman2017-02-231-0/+5
| | | | | Even if there are no pixels it will still trigger sanity checks when we start throwing bogus coordinates around.
* Dither cursors when reducing depthPierre Ossman2017-02-221-19/+119
|
* Change cursor API to use RGBA dataPierre Ossman2017-02-221-109/+94
| | | | | This will allow us to use better formats that preserve the entire alpha channel.
* Crop cursor before calling maskRect()Pierre Ossman2017-01-201-4/+6
| | | | We can no longer assume maskRect() will tolerate uncropped data.
* Change fillRect() to take a buffer instead of a pixelPierre Ossman2015-06-051-1/+3
| | | | | | | | There has been some confusion if fillRect() should accept a buffer or a pixel. This can cause misrendering if your data is not in the native endian order. A buffer makes more sense here though, and is what most of the callers are already assuming, so change the API to follow that.
* Allow PixelBuffers to be constPierre Ossman2014-07-141-2/+2
|
* Add helper class for a rendered cursorPierre Ossman2014-07-141-0/+52
| | | | | | Add a magical cursor framebuffer class for handling when you want to render the cursor on the server side. Keeps the cursor specific magic in one contained place.
* Use proper methods for pixel conversion in the cursor code as it previouslyPierre Ossman2010-09-301-6/+3
| | | | | | | wasn't handling all cases correctly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4153 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Migrating to new directory structure adopted from the RealVNC's source tree. ↵Constantin Kaplinsky2006-05-251-0/+179
More changes will follow. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@589 3789f03b-4d11-0410-bbf8-ca57d06f2519