projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed another preprocessor constant
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index e83df10bb1250a83e405380cd3189c77d8006bd4..a1f009f77c8470f5d0b7e0fcbe85eb97db53ecd0 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-624,7
+624,7
@@
Bitmap *CreateBitmap(int width, int height, int depth)
int real_height = MAX(1, height); // prevent zero bitmap height
int real_depth = GetRealDepth(depth);
int real_height = MAX(1, height); // prevent zero bitmap height
int real_depth = GetRealDepth(depth);
-
SDLCreateBitmapContent(new_bitmap,
real_width, real_height, real_depth);
+
new_bitmap->surface = SDLCreateNativeSurface(
real_width, real_height, real_depth);
new_bitmap->width = real_width;
new_bitmap->height = real_height;
new_bitmap->width = real_width;
new_bitmap->height = real_height;
@@
-1668,6
+1668,8
@@
void OpenAudio(void)
audio.device_name = NULL;
audio.device_fd = -1;
audio.device_name = NULL;
audio.device_fd = -1;
+ audio.sample_rate = DEFAULT_AUDIO_SAMPLE_RATE;
+
audio.num_channels = 0;
audio.music_channel = 0;
audio.first_sound_channel = 0;
audio.num_channels = 0;
audio.music_channel = 0;
audio.first_sound_channel = 0;