diff Applications/Sdl/SdlCairoSurface.cpp @ 560:aaeec7be8fb7

add support for alpha channel in CairoSurface
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Apr 2019 17:57:50 +0200
parents b70e9be013e4
children 4f2416d519b4
line wrap: on
line diff
--- a/Applications/Sdl/SdlCairoSurface.cpp	Wed Apr 17 16:16:47 2019 +0200
+++ b/Applications/Sdl/SdlCairoSurface.cpp	Wed Apr 17 17:57:50 2019 +0200
@@ -51,7 +51,7 @@
         cairoSurface_->GetWidth() != width ||
         cairoSurface_->GetHeight() != height)
     {
-      cairoSurface_.reset(new CairoSurface(width, height));
+      cairoSurface_.reset(new CairoSurface(width, height, false /* no alpha */));
 
       // TODO Big endian?
       static const uint32_t rmask = 0x00ff0000;