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
This commit is contained in:
parent
5b71113dcb
commit
e1ca5552dd
4 changed files with 34 additions and 57 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue