From 3e01316557b5b31b7d85e7cfc0dd8a0c7c6bd45b Mon Sep 17 00:00:00 2001 From: Felix Kratz Date: Sat, 26 Nov 2022 00:46:42 +0100 Subject: [PATCH] fix SLSSurface function signatures --- src/window.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/window.h b/src/window.h index 785dc89a..d5b6c7e4 100644 --- a/src/window.h +++ b/src/window.h @@ -34,12 +34,13 @@ extern int SLSSpaceGetType(int cid, uint64_t sid); extern CGError SLSAddSurface(int cid, uint32_t wid, uint32_t* outSID); extern CGError SLSRemoveSurface(int cid, uint32_t wid, uint32_t sid); -extern CGError SLSBindSurface(int cid, uint32_t wid, uint32_t sid, int x, int y, CGContextRef ctx); +extern CGError SLSBindSurface(int cid, uint32_t wid, uint32_t sid, int param1, int param2, unsigned int context_id); extern CGError SLSSetSurfaceBounds(int cid, uint32_t wid, uint32_t sid, CGRect bounds); extern CGError SLSSetSurfaceOpacity(int cid, uint32_t wid, uint32_t sid, bool opaque); -extern CGError SLSOrderSurface(int cid, uint32_t wid, uint32_t surface, uint32_t other_surface, int order); +extern CGError SLSOrderSurface(int cid, uint32_t wid, uint32_t surface, int mode, uint32_t other_surface); extern CGError SLSSetSurfaceResolution(int cid, uint32_t wid, uint32_t sid, CGFloat scale); extern CGError SLSFlushSurface(int cid, uint32_t wid, uint32_t surface, int param); +extern CGError SLSSetSurfaceColorSpace(int cid, uint32_t wid, uint32_t surface, CGColorSpaceRef color_space); #define kCGSHighQualityResamplingTagBit (1ULL << 4) #define kCGSStickyTagBit (1ULL << 11)