mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-12 08:48:04 -04:00
Use more consistent name for an option
This commit is contained in:
parent
0a72e7206c
commit
a727fb4857
@ -7,7 +7,7 @@ SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
||||
|
||||
# there are functions present on wiki, but not yet in stable SDL2 releases;
|
||||
# we hide these under following options
|
||||
OPTION(SDL2PP_NEW_2_0_4 "Enable new SDL2 functions present since SDL2 2.0.4" OFF)
|
||||
OPTION(SDL2PP_WITH_2_0_4 "Enable new functions available only in SDL2 2.0.4+" OFF)
|
||||
OPTION(SDL2PP_WITH_WERROR "Make warnings fatal" OFF)
|
||||
|
||||
IF(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
||||
|
@ -100,7 +100,7 @@ public:
|
||||
|
||||
LockHandle Lock();
|
||||
|
||||
#ifdef SDL2PP_NEW_2_0_4
|
||||
#ifdef SDL2PP_WITH_2_0_4
|
||||
void QueueAudio(const void* data, Uint32 len);
|
||||
void ClearQueuedAudio();
|
||||
Uint32 GetQueuedAudioSize() const;
|
||||
|
@ -79,7 +79,7 @@ AudioDevice::LockHandle AudioDevice::Lock() {
|
||||
return LockHandle(this);
|
||||
}
|
||||
|
||||
#ifdef SDL2PP_NEW_2_0_4
|
||||
#ifdef SDL2PP_WITH_2_0_4
|
||||
void AudioDevice::QueueAudio(const void* data, Uint32 len) {
|
||||
if (SDL_QueueAudio(device_id_, data, len) == 0)
|
||||
throw Exception("SDL_QueueAudio failed");
|
||||
|
@ -23,6 +23,6 @@
|
||||
#define SDL2PP_CONFIG_HH
|
||||
|
||||
#cmakedefine SDL2PP_WITH_IMAGE
|
||||
#cmakedefine SDL2PP_NEW_2_0_4
|
||||
#cmakedefine SDL2PP_WITH_2_0_4
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user