Sylvain Becker
03ad3136c8
Fix missing prototype warning
2019-11-16 22:59:56 +01:00
Sam Lantinga
53768d7d97
Added a utility function to simplify the hint handling logic
2019-11-13 21:53:01 -08:00
Sam Lantinga
af32a2f4cd
Updated copyright for 2019
2019-01-04 22:01:14 -08:00
Sam Lantinga
346af016a5
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Sam Lantinga
e247fc4d55
A hint with an empty string should be treated as the default value
2017-09-21 14:48:03 -07:00
Sam Lantinga
1b24bfad38
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Sam Lantinga
1b032a0419
Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
2016-10-07 23:40:44 -07:00
Sam Lantinga
7ee8dda270
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Sam Lantinga
56b58afdbe
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Philipp Wiesemann
c2c68ea945
Removed unnecessary NULL check.
2014-10-29 22:41:01 +01:00
Philipp Wiesemann
290396bf46
Fixed SDL_AddHintCallback() crashing if no more memory available.
...
The return value of SDL_malloc() was not checked and NULL therefore not handled.
Also added setting of error message for the other SDL_malloc() in this function.
2014-10-29 20:29:32 +01:00
Philipp Wiesemann
0f7e05d107
Fixed bug 2647 - Memory leak in SDL_AddHintCallback function - SDL_hints.c
...
Nitz
Variable entry going out of scope leaks the storage it points to, at:
/* Need to add a hint entry for this watcher */
hint = (SDL_Hint *)SDL_malloc(sizeof(*hint));
if (!hint) {
return;
}
Patch is attached.
2014-10-29 20:20:47 +01:00
Sam Lantinga
d7940a513e
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Ryan C. Gordon
82edee6971
Make internal SDL sources include SDL_internal.h instead of SDL_config.h
...
The new header will include SDL_config.h, but allows for other global stuff.
--HG--
extra : rebase_source : ddf4a4c0dc2c554b98c82700798f343cd91b16e3
2013-11-24 23:56:17 -05:00
Sam Lantinga
08dfaaa2e6
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
2013-08-29 08:29:21 -07:00
Sam Lantinga
8c2129f4b1
Christoph Mallon: Simplify assignment.
2013-08-29 08:26:24 -07:00
Sam Lantinga
6956070880
Added a hint to control the Windows timer resolution: SDL_HINT_TIMER_RESOLUTION
...
Added an API to watch hint changes: SDL_AddHintCallback(), SDL_DelHintCallback()
You can now dynamically set the joystick background event hint.
2013-07-13 03:13:41 -07:00
Sam Lantinga
0cb6385637
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Ryan C. Gordon
8912814135
Removed some unused variables that gcc 4.6.1 complains about.
2012-08-09 14:14:41 -04:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Tim Angus
2f0bec3220
* SDL_IOS_IDLE_TIMER_DISABLED hint
2011-06-10 14:23:36 +01:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
bb1d345990
This should match the header change.
2011-02-12 12:04:23 -08:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
a51c332dfe
Created a simpler version of SDL_SetHint() that doesn't need a priority.
2011-02-05 20:02:37 -08:00
Sam Lantinga
7f7bf51bdb
Added a hint system to allow configuration hints to be specified by the application.
2011-02-05 10:02:39 -08:00