aboutsummaryrefslogtreecommitdiff
path: root/backends/x11/x11.cpp
diff options
context:
space:
mode:
authorMax Horn2003-07-06 19:31:44 +0000
committerMax Horn2003-07-06 19:31:44 +0000
commit8c9b152f31388b5da1298c899b3d50ebac5e0376 (patch)
tree519d279782d3f6b4f9522b7723a882e3794078c6 /backends/x11/x11.cpp
parent98759833364d901bff01e08e1031a426d5cd88c1 (diff)
downloadscummvm-rg350-8c9b152f31388b5da1298c899b3d50ebac5e0376.tar.gz
scummvm-rg350-8c9b152f31388b5da1298c899b3d50ebac5e0376.tar.bz2
scummvm-rg350-8c9b152f31388b5da1298c899b3d50ebac5e0376.zip
const fix; expannded TODO comment a bit
svn-id: r8813
Diffstat (limited to 'backends/x11/x11.cpp')
-rw-r--r--backends/x11/x11.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp
index 999c42acb0..175f9bb722 100644
--- a/backends/x11/x11.cpp
+++ b/backends/x11/x11.cpp
@@ -458,7 +458,11 @@ bool OSystem_X11::set_sound_proc(SoundProc *proc, void *param, SoundFormat forma
}
void OSystem_X11::clear_sound_proc() {
- // FIXME implement...
+ // TODO implement this...
+ // The sound_thread has to be stopped in a nice way. In particular,
+ // using pthread_kill would be a bad idea. Rather, use pthread_cancel,
+ // or maybe a global variable, to achieve this.
+ // This method shouldn't return until the sound thread really has stopped.
}
@@ -755,7 +759,7 @@ void OSystem_X11::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_
cur_state.h = h;
cur_state.hot_x = hotspot_x;
cur_state.hot_y = hotspot_y;
- _ms_buf = (byte *)buf;
+ _ms_buf = buf;
if (_mouse_state_changed == false) {
undraw_mouse();
@@ -778,11 +782,6 @@ void OSystem_X11::create_thread(ThreadProc *proc, void *param)
{
pthread_t *thread = (pthread_t *) malloc(sizeof(pthread_t));
pthread_create(thread, NULL, (void *(*)(void *))proc, param);
- /* if (pthread_create(thread, NULL, (void *(*)(void *))proc, param))
- return NULL;
- else
- return thread;
- */
}
uint32 OSystem_X11::property(int param, Property *value)