salgdi3.cxx (cdf0e10c) salgdi3.cxx (46dacce6)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 336 unchanged lines hidden (view full) ---

345 static const char* pDisableCairoText = getenv( "SAL_DISABLE_CAIROTEXT" );
346 if( pDisableCairoText && (pDisableCairoText[0] != '0') )
347 return;
348
349 int nDummy;
350 if( !XQueryExtension( GetX11SalData()->GetDisplay()->GetDisplay(), "RENDER", &nDummy, &nDummy, &nDummy ) )
351 return;
352
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 336 unchanged lines hidden (view full) ---

345 static const char* pDisableCairoText = getenv( "SAL_DISABLE_CAIROTEXT" );
346 if( pDisableCairoText && (pDisableCairoText[0] != '0') )
347 return;
348
349 int nDummy;
350 if( !XQueryExtension( GetX11SalData()->GetDisplay()->GetDisplay(), "RENDER", &nDummy, &nDummy, &nDummy ) )
351 return;
352
353#ifdef MACOSX
354 OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( "libcairo.2.dylib" ));
355#else
356 OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( "libcairo.so.2" ));
353 OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( "libcairo.so.2" ));
357#endif
358 mpCairoLib = osl_loadModule( aLibName.pData, SAL_LOADMODULE_DEFAULT );
359 if( !mpCairoLib )
360 return;
361
362#ifdef DEBUG
363 // check cairo version
364 int (*p_version)();
365 p_version = (int(*)()) osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_version" );

--- 1325 unchanged lines hidden ---
354 mpCairoLib = osl_loadModule( aLibName.pData, SAL_LOADMODULE_DEFAULT );
355 if( !mpCairoLib )
356 return;
357
358#ifdef DEBUG
359 // check cairo version
360 int (*p_version)();
361 p_version = (int(*)()) osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_version" );

--- 1325 unchanged lines hidden ---