aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-09 05:31:20 +0200
committerEinar Johan Trøan Sømåen2012-07-09 05:31:20 +0200
commitca90ddf497c9f9578b1dcbec3dd5d2671dd29dff (patch)
tree34ab883a1b2d6e97506d699bf211a42262c0f0ce /engines
parentacc2a95aca8943aae9d3d5eea3549885bf2f2c79 (diff)
downloadscummvm-rg350-ca90ddf497c9f9578b1dcbec3dd5d2671dd29dff.tar.gz
scummvm-rg350-ca90ddf497c9f9578b1dcbec3dd5d2671dd29dff.tar.bz2
scummvm-rg350-ca90ddf497c9f9578b1dcbec3dd5d2671dd29dff.zip
WINTERMUTE: Clean out some commented code in BSurfaceSDL
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/Base/BSurfaceSDL.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/engines/wintermute/Base/BSurfaceSDL.cpp b/engines/wintermute/Base/BSurfaceSDL.cpp
index f5f4ee9a1f..07e552138c 100644
--- a/engines/wintermute/Base/BSurfaceSDL.cpp
+++ b/engines/wintermute/Base/BSurfaceSDL.cpp
@@ -133,28 +133,6 @@ void CBSurfaceSDL::finishLoad() {
}*/
}
- // convert 32-bit BMPs to 24-bit or they appear totally transparent (does any app actually write alpha in BMP properly?)
- /* if (FreeImage_GetBPP(img) != 32 || (imgFormat == FIF_BMP && FreeImage_GetBPP(img) != 24)) {
- FIBITMAP *newImg = FreeImage_ConvertTo24Bits(img);
- if (newImg) {
- FreeImage_Unload(img);
- img = newImg;
- } else {
- FreeImage_Unload(img);
- return -1;
- }
- }
-
- FreeImage_FlipVertical(img);*/
-
- //TODO: This is rather endian-specific, but should be replaced by non-SDL-code anyhow:
- /* uint32 rmask = surface->format.rMax() << surface->format.rShift;
- uint32 gmask = surface->format.gMax() << surface->format.gShift;
- uint32 bmask = surface->format.bMax() << surface->format.bShift;
- uint32 amask = surface->format.aMax();*/
-
-// SDL_Surface *surf = SDL_CreateRGBSurfaceFrom(surface->pixels, _width, _height, surface->format.bytesPerPixel * 8, surface->pitch, rmask, gmask, bmask, amask);
-
// no alpha, set color key
/* if (surface->format.bytesPerPixel != 4)
SDL_SetColorKey(surf, SDL_TRUE, SDL_MapRGB(surf->format, ck_red, ck_green, ck_blue));*/