From d158280425efac5f4ec72e00fb2b7389cdfb5a75 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 24 Feb 2004 22:39:42 +0000 Subject: the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again svn-id: r13036 --- backends/dc/audio.cpp | 4 ++-- backends/dc/dc.h | 6 +++--- backends/dc/display.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'backends/dc') diff --git a/backends/dc/audio.cpp b/backends/dc/audio.cpp index a31d4b1884..2838e0779d 100644 --- a/backends/dc/audio.cpp +++ b/backends/dc/audio.cpp @@ -34,7 +34,7 @@ void initSound() do_sound_command(CMD_SET_BUFFER(3)); } -bool OSystem_Dreamcast::set_sound_proc(SoundProc proc, void *param, SoundFormat format) +bool OSystem_Dreamcast::setSoundCallback(SoundProc proc, void *param) { #if SAMPLE_MODE == 0 assert(format == SOUND_16BIT); @@ -49,7 +49,7 @@ bool OSystem_Dreamcast::set_sound_proc(SoundProc proc, void *param, SoundFormat return true; } -void OSystem_Dreamcast::clear_sound_proc() +void OSystem_Dreamcast::clearSoundCallback() { _sound_proc = NULL; _sound_proc_param = NULL; diff --git a/backends/dc/dc.h b/backends/dc/dc.h index 57ba12ef51..b39d442856 100644 --- a/backends/dc/dc.h +++ b/backends/dc/dc.h @@ -35,7 +35,7 @@ class OSystem_Dreamcast : public OSystem { // Set the size of the video bitmap. // Typically, 320x200 - void init_size(uint w, uint h); + void initSize(uint w, uint h); int16 get_height() { return _screen_h; } int16 get_width() { return _screen_w; } @@ -71,8 +71,8 @@ class OSystem_Dreamcast : public OSystem { bool poll_event(Event *event); // Set function that generates samples - bool set_sound_proc(SoundProc proc, void *param, SoundFormat format); - void clear_sound_proc(); + bool setSoundCallback(SoundProc proc, void *param); + void clearSoundCallback(); // Poll cdrom status // Returns true if cd audio is playing diff --git a/backends/dc/display.cpp b/backends/dc/display.cpp index 2900e1e363..13d23d6eb1 100644 --- a/backends/dc/display.cpp +++ b/backends/dc/display.cpp @@ -141,7 +141,7 @@ void OSystem_Dreamcast::set_palette(const byte *colors, uint start, uint num) _screen_dirty = true; } -void OSystem_Dreamcast::init_size(uint w, uint h) +void OSystem_Dreamcast::initSize(uint w, uint h) { assert(w <= SCREEN_W && h <= SCREEN_H); -- cgit v1.2.3