GRAPHICS: Initialize class variables in VectorRenderer

This commit is contained in:
Eugene Sandulenko 2020-04-27 13:54:52 +02:00
parent b9a6b99575
commit c403182353
2 changed files with 4 additions and 1 deletions

View file

@ -130,7 +130,7 @@ VectorRenderer *createRenderer(int mode);
class VectorRenderer {
public:
VectorRenderer() : _activeSurface(NULL), _fillMode(kFillDisabled), _shadowOffset(0), _shadowFillMode(kShadowExponential),
_disableShadows(false), _strokeWidth(1), _gradientFactor(1) {
_disableShadows(false), _strokeWidth(1), _gradientFactor(1), _bevel(0), _dynamicData(0) {
}

View file

@ -543,6 +543,9 @@ VectorRendererSpec(PixelFormat format) :
_bitmapAlphaColor = _format.RGBToColor(255, 0, 255);
_clippingArea = Common::Rect(0, 0, 32767, 32767);
_fgColor = _bgColor = _bevelColor = 0;
_gradientStart = _gradientEnd = 0;
}
/****************************