salgdi3.cxx (c82f2877) salgdi3.cxx (aa150a94)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

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

341 static const char* pDisableCairoText = getenv( "SAL_DISABLE_CAIROTEXT" );
342 if( pDisableCairoText && (pDisableCairoText[0] != '0') )
343 return;
344
345 int nDummy;
346 if( !XQueryExtension( GetX11SalData()->GetDisplay()->GetDisplay(), "RENDER", &nDummy, &nDummy, &nDummy ) )
347 return;
348
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

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

341 static const char* pDisableCairoText = getenv( "SAL_DISABLE_CAIROTEXT" );
342 if( pDisableCairoText && (pDisableCairoText[0] != '0') )
343 return;
344
345 int nDummy;
346 if( !XQueryExtension( GetX11SalData()->GetDisplay()->GetDisplay(), "RENDER", &nDummy, &nDummy, &nDummy ) )
347 return;
348
349 OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( "libcairo.so.2" ));
350 mpCairoLib = osl_loadModule( aLibName.pData, SAL_LOADMODULE_DEFAULT );
349 mpCairoLib = osl_loadAsciiModule( "libcairo.so.2", SAL_LOADMODULE_DEFAULT );
351 if( !mpCairoLib )
352 return;
353
354#ifdef DEBUG
355 // check cairo version
356 int (*p_version)();
357 p_version = (int(*)()) osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_version" );
358 const int nVersion = p_version ? (*p_version)() : 0;

--- 1324 unchanged lines hidden ---
350 if( !mpCairoLib )
351 return;
352
353#ifdef DEBUG
354 // check cairo version
355 int (*p_version)();
356 p_version = (int(*)()) osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_version" );
357 const int nVersion = p_version ? (*p_version)() : 0;

--- 1324 unchanged lines hidden ---