diff options
author | Eric Scrivner <zenogais@gmail.com> | 2005-03-12 18:04:55 +0000 |
---|---|---|
committer | Eric Scrivner <zenogais@gmail.com> | 2005-03-12 18:04:55 +0000 |
commit | 3a0e16802b9838ad77d96276bfaa213d8285b76e (patch) | |
tree | 29bc8ad9e4c1c2d602ce1cf9cdf3bb72de790009 /src/resources/image.cpp | |
parent | 338dcba8a98853ad1f4d51f902602a0166f0b144 (diff) | |
download | mana-3a0e16802b9838ad77d96276bfaa213d8285b76e.tar.gz mana-3a0e16802b9838ad77d96276bfaa213d8285b76e.tar.bz2 mana-3a0e16802b9838ad77d96276bfaa213d8285b76e.tar.xz mana-3a0e16802b9838ad77d96276bfaa213d8285b76e.zip |
Changed RWops constructor a bit.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 989666f2..f985b759 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -199,13 +199,13 @@ Image* Image::load(const std::string &filePath, int flags) #endif } -Image* Image::load(const char* buffer, unsigned int bufferSize) +Image* Image::load(void* buffer, unsigned int bufferSize) { // Define our RWops structure SDL_RWops* rw = NULL; // Load the raw file data from the buffer - rw = SDL_RWFromMem((void*)buffer, bufferSize); + rw = SDL_RWFromMem(buffer, bufferSize); // Use SDL_Image to load the raw image data SDL_Surface* texture = IMG_Load_RW(rw, 1); |