Skip to content

Commit

Permalink
fix SLSSurface function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKratz committed Nov 25, 2022
1 parent 9cca916 commit 3e01316
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e01316

Please sign in to comment.