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 2081 - [PATCH] Add name to SDL_Point structure
Summary: [PATCH] Add name to SDL_Point structure
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.1
Hardware: x86_64 FreeBSD
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-02 03:26 UTC by Dmitry Marakasov
Modified: 2013-09-05 14:02 UTC (History)
0 users

See Also:


Attachments
Fix (479 bytes, text/plain)
2013-09-02 03:26 UTC, Dmitry Marakasov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov 2013-09-02 03:26:21 UTC
Created attachment 1316 [details]
Fix

Unlike SDL_Rect (typedef struct SDL_Rect {} SDL_Rect), SDL_Point (typedef struct {} SDL_Point) structure is unnamed. This feels inconsistent and makes it impossible to use forward declaration for SDL_Point, having to include whole SDL_rect.h instead. The attached patch fixes this.
Comment 1 Sam Lantinga 2013-09-05 14:02:52 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/384d5ba7ee44