salgdi.cxx (8a718ffc) | salgdi.cxx (54ae6a37) |
---|---|
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 --- 1395 unchanged lines hidden (view full) --- 1404 } 1405 } 1406 else 1407 WIN_Rectangle( getHDC(), (int)nX, (int)nY, (int)(nX+nWidth), (int)(nY+nHeight) ); 1408} 1409 1410// ----------------------------------------------------------------------- 1411 | 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 --- 1395 unchanged lines hidden (view full) --- 1404 } 1405 } 1406 else 1407 WIN_Rectangle( getHDC(), (int)nX, (int)nY, (int)(nX+nWidth), (int)(nY+nHeight) ); 1408} 1409 1410// ----------------------------------------------------------------------- 1411 |
1412void WinSalGraphics::drawPolyLine( sal_uLong nPoints, const SalPoint* pPtAry ) | 1412void WinSalGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint* pPtAry ) |
1413{ 1414 // Unter NT koennen wir das Array direkt weiterreichen 1415 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ), 1416 "WinSalGraphics::DrawPolyLine(): POINT != SalPoint" ); 1417 1418 POINT* pWinPtAry = (POINT*)pPtAry; 1419 // Wegen Windows 95 und der Beschraenkung auf eine maximale Anzahl 1420 // von Punkten 1421 if ( !Polyline( getHDC(), pWinPtAry, (int)nPoints ) && (nPoints > MAX_64KSALPOINTS) ) 1422 Polyline( getHDC(), pWinPtAry, MAX_64KSALPOINTS ); 1423} 1424 1425// ----------------------------------------------------------------------- 1426 | 1413{ 1414 // Unter NT koennen wir das Array direkt weiterreichen 1415 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ), 1416 "WinSalGraphics::DrawPolyLine(): POINT != SalPoint" ); 1417 1418 POINT* pWinPtAry = (POINT*)pPtAry; 1419 // Wegen Windows 95 und der Beschraenkung auf eine maximale Anzahl 1420 // von Punkten 1421 if ( !Polyline( getHDC(), pWinPtAry, (int)nPoints ) && (nPoints > MAX_64KSALPOINTS) ) 1422 Polyline( getHDC(), pWinPtAry, MAX_64KSALPOINTS ); 1423} 1424 1425// ----------------------------------------------------------------------- 1426 |
1427void WinSalGraphics::drawPolygon( sal_uLong nPoints, const SalPoint* pPtAry ) | 1427void WinSalGraphics::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ) |
1428{ 1429 // Unter NT koennen wir das Array direkt weiterreichen 1430 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ), 1431 "WinSalGraphics::DrawPolygon(): POINT != SalPoint" ); 1432 1433 POINT* pWinPtAry = (POINT*)pPtAry; 1434 // Wegen Windows 95 und der Beschraenkung auf eine maximale Anzahl 1435 // von Punkten --- 71 unchanged lines hidden (view full) --- 1507} 1508 1509// ----------------------------------------------------------------------- 1510 1511#define SAL_POLY_STACKBUF 32 1512 1513// ----------------------------------------------------------------------- 1514 | 1428{ 1429 // Unter NT koennen wir das Array direkt weiterreichen 1430 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ), 1431 "WinSalGraphics::DrawPolygon(): POINT != SalPoint" ); 1432 1433 POINT* pWinPtAry = (POINT*)pPtAry; 1434 // Wegen Windows 95 und der Beschraenkung auf eine maximale Anzahl 1435 // von Punkten --- 71 unchanged lines hidden (view full) --- 1507} 1508 1509// ----------------------------------------------------------------------- 1510 1511#define SAL_POLY_STACKBUF 32 1512 1513// ----------------------------------------------------------------------- 1514 |
1515sal_Bool WinSalGraphics::drawPolyLineBezier( sal_uLong nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) | 1515sal_Bool WinSalGraphics::drawPolyLineBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) |
1516{ 1517#ifdef USE_GDI_BEZIERS 1518 // Unter NT koennen wir das Array direkt weiterreichen 1519 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ), 1520 "WinSalGraphics::DrawPolyLineBezier(): POINT != SalPoint" ); 1521 1522 ImplRenderPath( getHDC(), nPoints, pPtAry, pFlgAry ); 1523 1524 return sal_True; 1525#else 1526 return sal_False; 1527#endif 1528} 1529 1530// ----------------------------------------------------------------------- 1531 | 1516{ 1517#ifdef USE_GDI_BEZIERS 1518 // Unter NT koennen wir das Array direkt weiterreichen 1519 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ), 1520 "WinSalGraphics::DrawPolyLineBezier(): POINT != SalPoint" ); 1521 1522 ImplRenderPath( getHDC(), nPoints, pPtAry, pFlgAry ); 1523 1524 return sal_True; 1525#else 1526 return sal_False; 1527#endif 1528} 1529 1530// ----------------------------------------------------------------------- 1531 |
1532sal_Bool WinSalGraphics::drawPolygonBezier( sal_uLong nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) | 1532sal_Bool WinSalGraphics::drawPolygonBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) |
1533{ 1534#ifdef USE_GDI_BEZIERS 1535 // Unter NT koennen wir das Array direkt weiterreichen 1536 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ), 1537 "WinSalGraphics::DrawPolygonBezier(): POINT != SalPoint" ); 1538 1539 POINT aStackAry1[SAL_POLY_STACKBUF]; 1540 BYTE aStackAry2[SAL_POLY_STACKBUF]; --- 349 unchanged lines hidden --- | 1533{ 1534#ifdef USE_GDI_BEZIERS 1535 // Unter NT koennen wir das Array direkt weiterreichen 1536 DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ), 1537 "WinSalGraphics::DrawPolygonBezier(): POINT != SalPoint" ); 1538 1539 POINT aStackAry1[SAL_POLY_STACKBUF]; 1540 BYTE aStackAry2[SAL_POLY_STACKBUF]; --- 349 unchanged lines hidden --- |