We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2381

Summary: SDL_SetRenderDrawColor and SDL_GetRenderDrawColor not properly declared.
Product: SDL Reporter: info
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2    
Version: 2.0.1   
Hardware: x86_64   
OS: Windows 7   

Description info 2014-02-04 10:07:53 UTC
I'm using VS 2013.

My linker couldn't find SDL_SetRenderDrawColor and SDL_GetRenderDrawColor until I added SDLCALL to their declaration in SDL_render.h.

The reason for this was the different calling convention I use in my project (vectorcall) and the one SDL uses (cdecl).

Without SDLCALL visual studio assumes RenderDrawColor uses vectorcall as well and fails.
Comment 1 Sam Lantinga 2014-02-09 10:50:36 UTC
This is fixed for the 2.0.2 release, thanks!