[Scummvm-cvs-logs] CVS: scummvm/backends/x11 x11.cpp,1.12,1.13
Jonathan Gray
khalek at users.sourceforge.net
Sat Jul 5 22:52:16 CEST 2003
Update of /cvsroot/scummvm/scummvm/backends/x11
In directory sc8-pr-cvs1:/tmp/cvs-serv22513
Modified Files:
x11.cpp
Log Message:
make x11 backend compile again, still doesn't actually work though...
Index: x11.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/x11/x11.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- x11.cpp 5 Jul 2003 15:17:46 -0000 1.12
+++ x11.cpp 6 Jul 2003 05:51:41 -0000 1.13
@@ -97,7 +97,9 @@
// 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 @@
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 @@
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 @@
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::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 @@
}
}
-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 @@
h--;
}
}
+
+int16 OSystem_X11::get_height() {
+ return fb_height;
+}
+
+int16 OSystem_X11::get_width() {
+ return fb_width;
+}
+
More information about the Scummvm-git-logs
mailing list