From: Ingo Ruhnke Date: Sun, 3 Aug 2014 04:00:02 +0000 (+0200) Subject: Replaced old SDL1 surface flags with 0 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=869d7cfd916a9f28d620468e4dce34d61d537c9a;p=supertux.git Replaced old SDL1 surface flags with 0 --- diff --git a/src/video/gl/gl_renderer.cpp b/src/video/gl/gl_renderer.cpp index 972dc450a..d24127c69 100644 --- a/src/video/gl/gl_renderer.cpp +++ b/src/video/gl/gl_renderer.cpp @@ -393,9 +393,9 @@ GLRenderer::do_take_screenshot() SDL_Surface *shot_surf; // create surface to hold screenshot #if SDL_BYTEORDER == SDL_BIG_ENDIAN - shot_surf = SDL_CreateRGBSurface(SDL_HWSURFACE, SCREEN_WIDTH, SCREEN_HEIGHT, 24, 0x00FF0000, 0x0000FF00, 0x000000FF, 0); + shot_surf = SDL_CreateRGBSurface(0, SCREEN_WIDTH, SCREEN_HEIGHT, 24, 0x00FF0000, 0x0000FF00, 0x000000FF, 0); #else - shot_surf = SDL_CreateRGBSurface(SDL_HWSURFACE, SCREEN_WIDTH, SCREEN_HEIGHT, 24, 0x000000FF, 0x0000FF00, 0x00FF0000, 0); + shot_surf = SDL_CreateRGBSurface(0, SCREEN_WIDTH, SCREEN_HEIGHT, 24, 0x000000FF, 0x0000FF00, 0x00FF0000, 0); #endif if (!shot_surf) { log_warning << "Could not create RGB Surface to contain screenshot" << std::endl; diff --git a/src/video/gl/gl_texture.cpp b/src/video/gl/gl_texture.cpp index 10dfa2ddb..298e0f7f3 100644 --- a/src/video/gl/gl_texture.cpp +++ b/src/video/gl/gl_texture.cpp @@ -93,11 +93,11 @@ GLTexture::GLTexture(SDL_Surface* image) : image_height = image->h; #if SDL_BYTEORDER == SDL_BIG_ENDIAN - SDL_Surface* convert = SDL_CreateRGBSurface(SDL_HWSURFACE, + SDL_Surface* convert = SDL_CreateRGBSurface(0, texture_width, texture_height, 32, 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff); #else - SDL_Surface* convert = SDL_CreateRGBSurface(SDL_HWSURFACE, + SDL_Surface* convert = SDL_CreateRGBSurface(0, texture_width, texture_height, 32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000); #endif