Init GAL class members (Coverity fixes)
Fixes: CID 157139 (GAL) CID 157138 (CAIRO_GAL)
This commit is contained in:
parent
c94269e173
commit
ef9f8d40c6
|
@ -52,11 +52,24 @@ CAIRO_GAL::CAIRO_GAL( GAL_DISPLAY_OPTIONS& aDisplayOptions,
|
||||||
mouseListener = aMouseListener;
|
mouseListener = aMouseListener;
|
||||||
paintListener = aPaintListener;
|
paintListener = aPaintListener;
|
||||||
|
|
||||||
// Initialize the flags
|
// Initialise grouping
|
||||||
isGrouping = false;
|
isGrouping = false;
|
||||||
isInitialized = false;
|
isElementAdded = false;
|
||||||
validCompositor = false;
|
|
||||||
groupCounter = 0;
|
groupCounter = 0;
|
||||||
|
currentGroup = nullptr;
|
||||||
|
|
||||||
|
// Initialise compositing state
|
||||||
|
mainBuffer = 0;
|
||||||
|
overlayBuffer = 0;
|
||||||
|
validCompositor = false;
|
||||||
|
SetTarget( TARGET_NONCACHED );
|
||||||
|
|
||||||
|
// Initialise Cairo state
|
||||||
|
cairo_matrix_init_identity( &cairoWorldScreenMatrix );
|
||||||
|
currentContext = nullptr;
|
||||||
|
context = nullptr;
|
||||||
|
surface = nullptr;
|
||||||
|
isInitialized = false;
|
||||||
|
|
||||||
// Connecting the event handlers
|
// Connecting the event handlers
|
||||||
Connect( wxEVT_PAINT, wxPaintEventHandler( CAIRO_GAL::onPaint ) );
|
Connect( wxEVT_PAINT, wxPaintEventHandler( CAIRO_GAL::onPaint ) );
|
||||||
|
|
|
@ -55,6 +55,7 @@ GAL::GAL( GAL_DISPLAY_OPTIONS& aDisplayOptions ) :
|
||||||
SetFlip( false, false );
|
SetFlip( false, false );
|
||||||
SetLineWidth( 1.0 );
|
SetLineWidth( 1.0 );
|
||||||
computeWorldScale();
|
computeWorldScale();
|
||||||
|
SetAxesEnabled( false );
|
||||||
|
|
||||||
// Set grid defaults
|
// Set grid defaults
|
||||||
SetGridVisibility( true );
|
SetGridVisibility( true );
|
||||||
|
|
Loading…
Reference in New Issue