diff --git a/src/graphics/graphics.h b/src/graphics/graphics.h index 0e0ba77..ec69537 100644 --- a/src/graphics/graphics.h +++ b/src/graphics/graphics.h @@ -131,7 +131,7 @@ ORCA_API void oc_surface_send_to_back(oc_surface surface); //DOC: puts surface typedef void (*oc_vsync_callback)(void* data); -ORCA_API void oc_vsync_init(); +ORCA_API void oc_vsync_init(void); ORCA_API void oc_vsync_window(oc_window window); //------------------------------------------------------------------------------------------ diff --git a/src/graphics/win32_vsync.c b/src/graphics/win32_vsync.c index 88ef542..0bfc4c9 100644 --- a/src/graphics/win32_vsync.c +++ b/src/graphics/win32_vsync.c @@ -6,34 +6,15 @@ * *****************************************************************/ -// #define WIN32_LEAN_AND_MEAN -// #define WIN32_EXTRA_LEAN -// #define NOMINMAX - -// #define D3D11_NO_HELPERS -// #define CINTERFACE -// #define COBJMACROS - -// #define interface struct - -// #include - #include "platform/platform_thread.h" #include "app/win32_app.h" -// This forward declaration is needed to suppress an order of declarations bug in the d3d headers. -// d3d11shader.h(454): warning C4115: 'ID3D11ModuleInstance': named type definition in parentheses -// struct ID3D11ModuleInstance; - #define COBJMACROS #define interface struct #include #include #undef interface -// #include -// #include - typedef struct oc_vsync_data { IDXGIFactory4* factory; @@ -125,7 +106,7 @@ static i32 oc_window_vysnc_notification_thread(void* userPointer) return 0; } -void oc_vsync_init() +void oc_vsync_init(void) { if(__oc_vsync_data.adapter) {