From 38b586ae7b8cae4530b20b0285126e3ca6947e49 Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 14 May 2014 22:29:53 +0000 Subject: [PATCH] Fixed missing initialization of FBSurface attributes. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2892 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/common/FBSurfaceSDL2.cxx | 2 ++ src/emucore/FBSurface.cxx | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/common/FBSurfaceSDL2.cxx b/src/common/FBSurfaceSDL2.cxx index 6377e815b..0756bd92d 100644 --- a/src/common/FBSurfaceSDL2.cxx +++ b/src/common/FBSurfaceSDL2.cxx @@ -58,6 +58,8 @@ FBSurfaceSDL2::FBSurfaceSDL2(FrameBufferSDL2& buffer, SDL_memcpy(myStaticData, data, mySurface->w * mySurface->h * 4); } + applyAttributes(false); + // To generate texture reload(); } diff --git a/src/emucore/FBSurface.cxx b/src/emucore/FBSurface.cxx index 53c927361..2aeb4c180 100644 --- a/src/emucore/FBSurface.cxx +++ b/src/emucore/FBSurface.cxx @@ -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; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -