Skip to content
Browse files

SDLSurfaceSprite2D: add method for getting the SDL_Surface

video driver will need this for blitting
  • Loading branch information...
1 parent 617746b commit 0d3d529f36c5a127526396f3c02e8d160dbdd71b @bradallred bradallred committed Jun 16, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 gemrb/plugins/SDLVideo/SDLSurfaceSprite2D.h
View
2 gemrb/plugins/SDLVideo/SDLSurfaceSprite2D.h
@@ -48,6 +48,8 @@ class SDLSurfaceSprite2D : public Sprite2D {
void SetColorKey(ieDword ck);
Color GetPixel(unsigned short x, unsigned short y) const;
+ SDL_Surface* GetSurface() const { return surface; };
+
static void SetSurfacePalette(SDL_Surface* surf, SDL_Color* pal, int numcolors = 256);
};

0 comments on commit 0d3d529

Please sign in to comment.
Something went wrong with that request. Please try again.