Fixed missing initialization of FBSurface attributes.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2892 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2014-05-14 22:29:53 +00:00
parent d04c42580b
commit 38b586ae7b
2 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,8 @@ FBSurfaceSDL2::FBSurfaceSDL2(FrameBufferSDL2& buffer,
SDL_memcpy(myStaticData, data, mySurface->w * mySurface->h * 4);
}
applyAttributes(false);
// To generate texture
reload();
}

View File

@ -27,6 +27,11 @@ FBSurface::FBSurface()
{
// NOTE: myPixels and myPitch MUST be set in child classes that inherit
// from this class
// Set default attributes
myAttributes.smoothing = false;
myAttributes.blending = false;
myAttributes.blendalpha = 100;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -