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 - SDL_SetRenderDrawColor and SDL_GetRenderDrawColor not properly declared.
Summary: SDL_SetRenderDrawColor and SDL_GetRenderDrawColor not properly declared.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.1
Hardware: x86_64 Windows 7
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-04 10:07 UTC by info
Modified: 2014-02-09 10:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!