diff options
author | Max Horn | 2003-07-02 15:08:46 +0000 |
---|---|---|
committer | Max Horn | 2003-07-02 15:08:46 +0000 |
commit | e1ca5552ddccf427cf1a0ca84e335b74b183d638 (patch) | |
tree | 0c825fdf214968d7769bfc38d026c4f7d476e867 /backends/sdl/sdl-common.h | |
parent | 5b71113dcb4b87287417d0605c48fbc2a9eab451 (diff) | |
download | scummvm-rg350-e1ca5552ddccf427cf1a0ca84e335b74b183d638.tar.gz scummvm-rg350-e1ca5552ddccf427cf1a0ca84e335b74b183d638.tar.bz2 scummvm-rg350-e1ca5552ddccf427cf1a0ca84e335b74b183d638.zip |
cleanup; made mutex protection of graphics code a little bit tighter by protecting all of method property(); moved set_palette to OSystem_SDL_Common (it was identical in both normal and GL backend)
svn-id: r8717
Diffstat (limited to 'backends/sdl/sdl-common.h')
-rw-r--r-- | backends/sdl/sdl-common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/sdl/sdl-common.h b/backends/sdl/sdl-common.h index 9c4bf91ab7..da878153d4 100644 --- a/backends/sdl/sdl-common.h +++ b/backends/sdl/sdl-common.h @@ -31,13 +31,13 @@ class OSystem_SDL_Common : public OSystem { public: - // Set colors of the palette - void set_palette(const byte *colors, uint start, uint num) = 0; - // Set the size of the video bitmap. // Typically, 320x200 void init_size(uint w, uint h); + // Set colors of the palette + void set_palette(const byte *colors, uint start, uint num); + // Draw a bitmap to screen. // The screen will not be updated to reflect the new bitmap void copy_rect(const byte *buf, int pitch, int x, int y, int w, int h); @@ -208,7 +208,7 @@ protected: // Mutex that prevents multiple threads interferring with each other // when accessing the screen. - SDL_mutex *_mutex; + SDL_mutex *_graphicsMutex; void add_dirty_rgn_auto(const byte *buf); |