Commit 29ca551d authored by hybrid's avatar hybrid

Also disabled ColorKey blitting, just to be sure.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1694 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 49a9cb38
...@@ -409,6 +409,7 @@ bool CIrrDeviceSDL::present(video::IImage* surface, void* windowId, core::rect<s ...@@ -409,6 +409,7 @@ bool CIrrDeviceSDL::present(video::IImage* surface, void* windowId, core::rect<s
if (!sdlSurface) if (!sdlSurface)
return false; return false;
SDL_SetAlpha(sdlSurface, 0, 0); SDL_SetAlpha(sdlSurface, 0, 0);
SDL_SetColorKey(sdlSurface, 0, 0);
sdlSurface->format->BitsPerPixel=surface->getBitsPerPixel(); sdlSurface->format->BitsPerPixel=surface->getBitsPerPixel();
sdlSurface->format->BytesPerPixel=surface->getBytesPerPixel(); sdlSurface->format->BytesPerPixel=surface->getBytesPerPixel();
if ((surface->getColorFormat()==video::ECF_R8G8B8) || if ((surface->getColorFormat()==video::ECF_R8G8B8) ||
...@@ -440,7 +441,7 @@ bool CIrrDeviceSDL::present(video::IImage* surface, void* windowId, core::rect<s ...@@ -440,7 +441,7 @@ bool CIrrDeviceSDL::present(video::IImage* surface, void* windowId, core::rect<s
sdlSurface->format->Rshift=11; sdlSurface->format->Rshift=11;
sdlSurface->format->Gshift=5; sdlSurface->format->Gshift=5;
sdlSurface->format->Bshift=0; sdlSurface->format->Bshift=0;
sdlSurface->format->Ashift=32; sdlSurface->format->Ashift=16;
} }
else if (surface->getColorFormat()==video::ECF_A1R5G5B5) else if (surface->getColorFormat()==video::ECF_A1R5G5B5)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment