mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 03:55:19 -04:00
Don't use CGWindowID because that only exists in 10.5 SDK or later
This commit is contained in:
parent
b03099f8fc
commit
69ed38fdf9
@ -1889,12 +1889,13 @@ void Window_Init(void) { Window_CommonInit(); }
|
||||
|
||||
/* Private CGS/CGL stuff */
|
||||
typedef int CGSConnectionID;
|
||||
typedef int CGSWindowID;
|
||||
extern CGSConnectionID _CGSDefaultConnection(void);
|
||||
extern CGWindowID GetNativeWindowFromWindowRef(WindowRef window);
|
||||
extern CGContextRef CGWindowContextCreate(CGSConnectionID conn, CGWindowID win, void* opts);
|
||||
extern CGSWindowID GetNativeWindowFromWindowRef(WindowRef window);
|
||||
extern CGContextRef CGWindowContextCreate(CGSConnectionID conn, CGSWindowID win, void* opts);
|
||||
|
||||
static CGSConnectionID conn;
|
||||
static CGWindowID winId;
|
||||
static CGSWindowID winId;
|
||||
|
||||
void Window_Create(int width, int height) {
|
||||
Rect r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user