diff --git a/desktop_version/src/GraphicsUtil.cpp b/desktop_version/src/GraphicsUtil.cpp index 159fe26a..b0312cad 100644 --- a/desktop_version/src/GraphicsUtil.cpp +++ b/desktop_version/src/GraphicsUtil.cpp @@ -11,23 +11,6 @@ void setRect( SDL_Rect& _r, int x, int y, int w, int h ) _r.h = h; } -unsigned int endian_swap( unsigned int x ) -{ - return (x>>24) | - ((x<<8) & 0x00FF0000) | - ((x>>8) & 0x0000FF00) | - (x<<24); -} - - -template -void endian_swap(T *objp) -{ - unsigned char *memp = reinterpret_cast(objp); - std::reverse(memp, memp + sizeof(T)); -} - - SDL_Surface* GetSubSurface( SDL_Surface* metaSurface, int x, int y, int width, int height ) { // Create an SDL_Rect with the area of the _surface diff --git a/desktop_version/src/GraphicsUtil.h b/desktop_version/src/GraphicsUtil.h index 9424115d..f6faddd4 100644 --- a/desktop_version/src/GraphicsUtil.h +++ b/desktop_version/src/GraphicsUtil.h @@ -11,8 +11,6 @@ struct colourTransform void setRect(SDL_Rect& _r, int x, int y, int w, int h); -unsigned int endian_swap(unsigned int x); - SDL_Surface* GetSubSurface( SDL_Surface* metaSurface, int x, int y, int width, int height ); void DrawPixel( SDL_Surface *surface, int x, int y, Uint32 pixel );