mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Small fix thanks to valgrind.
svn-id: r4025
This commit is contained in:
@@ -382,7 +382,7 @@ bool OSystem_X11::set_sound_proc(void *param, SoundProc *proc, byte format) {
|
||||
thread_param.format = format;
|
||||
|
||||
if (format == SOUND_16BIT)
|
||||
pthread_create(&sound_thread, NULL, sound_and_music_thread, (void *) &thread_param);
|
||||
; /* pthread_create(&sound_thread, NULL, sound_and_music_thread, (void *) &thread_param); */
|
||||
else
|
||||
warning("Only support 16 bit sound for now. Disabling sound ");
|
||||
|
||||
@@ -759,6 +759,7 @@ bool OSystem_X11::poll_event(Event *scumm_event) {
|
||||
scumm_event->event_code = EVENT_KEYDOWN;
|
||||
scumm_event->kbd.keycode = keycode;
|
||||
scumm_event->kbd.ascii = (ascii != -1 ? ascii : keycode);
|
||||
scumm_event->kbd.flags = 0;
|
||||
return true;
|
||||
}
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user