diff options
author | Jonathan Gray | 2003-07-06 05:51:41 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-07-06 05:51:41 +0000 |
commit | fb6b42bb93353e45f917caf2f10f82e601452847 (patch) | |
tree | 5f7db5ab57ce6738fb866a1677a118aae17734bd /backends/x11/x11.cpp | |
parent | 714687eaf1da6d2fd9e3fb4819c4cb2916e4c035 (diff) | |
download | scummvm-rg350-fb6b42bb93353e45f917caf2f10f82e601452847.tar.gz scummvm-rg350-fb6b42bb93353e45f917caf2f10f82e601452847.tar.bz2 scummvm-rg350-fb6b42bb93353e45f917caf2f10f82e601452847.zip |
make x11 backend compile again, still doesn't actually work though...
svn-id: r8789
Diffstat (limited to 'backends/x11/x11.cpp')
-rw-r--r-- | backends/x11/x11.cpp | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp index bd3394abe3..999c42acb0 100644 --- a/backends/x11/x11.cpp +++ b/backends/x11/x11.cpp @@ -97,7 +97,9 @@ public: // Set function that generates samples bool set_sound_proc(SoundProc *proc, void *param, SoundFormat format); - + + void clear_sound_proc(); + // Poll cdrom status // Returns true if cd audio is playing bool poll_cdrom(); @@ -132,6 +134,8 @@ public: void clear_overlay(); void grab_overlay(int16 *, int); void copy_rect_overlay(const int16 *, int, int, int, int, int); + virtual int16 get_height(); + virtual int16 get_width(); static OSystem *create(int gfx_mode, bool full_screen); @@ -436,7 +440,7 @@ void OSystem_X11::init_size(uint w, uint h) palette = (uint16 *)calloc(256, sizeof(uint16)); } -bool OSystem_X11::set_sound_proc(void *param, SoundProc *proc, byte format) +bool OSystem_X11::set_sound_proc(SoundProc *proc, void *param, SoundFormat format) { static THREAD_PARAM thread_param; @@ -453,6 +457,11 @@ bool OSystem_X11::set_sound_proc(void *param, SoundProc *proc, byte format) return true; } +void OSystem_X11::clear_sound_proc() { + // FIXME implement... +} + + void OSystem_X11::set_palette(const byte *colors, uint start, uint num) { const byte *data = colors; @@ -768,10 +777,12 @@ void OSystem_X11::set_shake_pos(int shake_pos) void OSystem_X11::create_thread(ThreadProc *proc, void *param) { pthread_t *thread = (pthread_t *) malloc(sizeof(pthread_t)); - if (pthread_create(thread, NULL, (void *(*)(void *))proc, param)) + 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) @@ -1029,7 +1040,7 @@ void OSystem_X11::set_timer(int timer, int (*callback) (int)) } } -MutexRef OSystem_X11::create_mutex() +OSystem::MutexRef OSystem_X11::create_mutex(void) { pthread_mutex_t *mutex = (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t)); pthread_mutex_init(mutex, NULL); @@ -1089,3 +1100,12 @@ void OSystem_X11::copy_rect_overlay(const int16 *src, int pitch, int x, int y, i h--; } } + +int16 OSystem_X11::get_height() { + return fb_height; +} + +int16 OSystem_X11::get_width() { + return fb_width; +} + |