aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Surface_OSX.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Avoid shadowing variablesPierre Ossman2024-06-241-12/+16
| | | | | It's a source of confusion and possibly bugs to reuse the same variable name for multiple things.
* Use nullptr in all C++ codePierre Ossman2024-06-241-3/+4
| | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* Be consistent in including config.hPierre Ossman2021-12-301-0/+4
| | | | | | The generally recommended way is to include it from source files, not headers. We had a mix of both. Let's try to be consistent and follow the recommended way.
* Filter out alpha channel for normal draw() operationPierre Ossman2017-04-281-3/+11
| | | | | | | macOS actually uses the alpha channel on windows, so we can get visual artifacts if we feed it bogus alpha data. This filtering unfortunately causes some CPU usage, but it's necessary until we can make sure the framebuffer always contains proper 0xff for alpha.
* Use correct color space for current monitorPierre Ossman2017-04-281-26/+20
| | | | | | We won't always be on the primary monitor, so check which color space we're actually using right now. For offscreen stuff we assume a standard sRGB color space.
* Create new CGImage for each drawPierre Ossman2017-04-281-35/+46
| | | | | | The system expects these to be immutable, so changing the data after creation only works in some special cases. We need to recreate the CGImage object each time we've changed something.
* Use sub-image instead of clippingPierre Ossman2017-04-281-18/+18
| | | | It seems to be more efficient.
* Fade overlay in and outPierre Ossman2017-02-101-7/+9
|
* Add alpha blending support to surfacesPierre Ossman2017-02-101-17/+63
|
* Render on a temporary surface when neededPierre Ossman2017-02-101-14/+53
| | | | | | Some platforms draw directly to the screen, which means that updates will flicker if we draw multiple layers. Prevent this by first composing the update on a hidden surface.
* Abstract platform rendering to "surfaces"Pierre Ossman2017-02-101-0/+162
This will allow us to render more things than just the framebuffer.