comparison Framework/Viewport/WidgetViewport.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 1201b12eb9f8
comparison
equal deleted inserted replaced
559:9e61b0ac12f1 560:aaeec7be8fb7
88 88
89 89
90 void WidgetViewport::SetSize(unsigned int width, 90 void WidgetViewport::SetSize(unsigned int width,
91 unsigned int height) 91 unsigned int height)
92 { 92 {
93 background_.SetSize(width, height); 93 background_.SetSize(width, height, false /* no alpha */);
94 94
95 if (centralWidget_.get() != NULL) 95 if (centralWidget_.get() != NULL)
96 { 96 {
97 centralWidget_->SetSize(width, height); 97 centralWidget_->SetSize(width, height);
98 } 98 }