X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fvideo%2Fsurface.h;h=0d8983363eb80d085135297ade77d4e7934b14d7;hb=aeef2a79fcf8061b5e947360b42695e0b8121fa6;hp=10fe06ed55b3a7ffd7fbc979110988de3ba6596d;hpb=aae9774f7f454eea1935c22ec705707665d162f1;p=supertux.git diff --git a/lib/video/surface.h b/lib/video/surface.h index 10fe06ed5..0d8983363 100644 --- a/lib/video/surface.h +++ b/lib/video/surface.h @@ -129,10 +129,8 @@ namespace SuperTux /** Return 0 on success, -2 if surface needs to be reloaded */ virtual int draw(float x, float y, Uint8 alpha, Uint32 effect = NONE_EFFECT) = 0; virtual int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, Uint32 effect = NONE_EFFECT) = 0; -#if 0 + virtual int draw_stretched(float x, float y, int w, int h, Uint8 alpha, Uint32 effect = NONE_EFFECT) = 0; - virtual int draw_stretched(float x, float y, int w, int h, Uint8 alpha, bool update) = 0; -#endif int resize(int w_, int h_); @@ -150,10 +148,7 @@ namespace SuperTux int draw(float x, float y, Uint8 alpha, Uint32 effect = NONE_EFFECT); int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, Uint32 effect = NONE_EFFECT); -#if 0 - - int draw_stretched(float x, float y, int w, int h, Uint8 alpha); -#endif + int draw_stretched(float x, float y, int w, int h, Uint8 alpha, Uint32 effect = NONE_EFFECT); }; #ifndef NOOPENGL @@ -172,10 +167,8 @@ namespace SuperTux int draw(float x, float y, Uint8 alpha, Uint32 effect = NONE_EFFECT); int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, Uint32 effect = NONE_EFFECT); -#if 0 + int draw_stretched(float x, float y, int w, int h, Uint8 alpha, Uint32 effect = NONE_EFFECT); - int draw_stretched(float x, float y, int w, int h, Uint8 alpha); -#endif private: void create_gl(SDL_Surface * surf, GLuint * tex);