salgdi.cxx (2c21464b) 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

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

838 if( nPenColor_ != SALCOLOR_NONE )
839 XDrawRectangle( GetXDisplay(),
840 GetDrawable(),
841 SelectPen(),
842 nX, nY, nDX-1, nDY-1 );
843}
844
845// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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

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

838 if( nPenColor_ != SALCOLOR_NONE )
839 XDrawRectangle( GetXDisplay(),
840 GetDrawable(),
841 SelectPen(),
842 nX, nY, nDX-1, nDY-1 );
843}
844
845// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
846void X11SalGraphics::drawPolyLine( sal_uLong nPoints, const SalPoint *pPtAry )
846void X11SalGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint *pPtAry )
847{
848 drawPolyLine( nPoints, pPtAry, false );
849}
850
851// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
847{
848 drawPolyLine( nPoints, pPtAry, false );
849}
850
851// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
852void X11SalGraphics::drawPolyLine( sal_uLong nPoints, const SalPoint *pPtAry, bool bClose )
852void X11SalGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint *pPtAry, bool bClose )
853{
854 if( nPenColor_ != SALCOLOR_NONE)
855 {
856 SalPolyLine Points( nPoints, pPtAry );
857
858 DrawLines( nPoints, Points, SelectPen(), bClose );
859 }
860}
861
862// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
853{
854 if( nPenColor_ != SALCOLOR_NONE)
855 {
856 SalPolyLine Points( nPoints, pPtAry );
857
858 DrawLines( nPoints, Points, SelectPen(), bClose );
859 }
860}
861
862// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
863void X11SalGraphics::drawPolygon( sal_uLong nPoints, const SalPoint* pPtAry )
863void X11SalGraphics::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry )
864{
865 if( nPoints == 0 )
866 return;
867
868 if( nPoints < 3 )
869 {
870 if( !bXORMode_ )
871 {

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

922 &Points[0], nPoints,
923 Complex, CoordModeOrigin );
924
925 if( nPenColor_ != SALCOLOR_NONE)
926 DrawLines( nPoints, Points, SelectPen(), true );
927}
928
929// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
864{
865 if( nPoints == 0 )
866 return;
867
868 if( nPoints < 3 )
869 {
870 if( !bXORMode_ )
871 {

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

922 &Points[0], nPoints,
923 Complex, CoordModeOrigin );
924
925 if( nPenColor_ != SALCOLOR_NONE)
926 DrawLines( nPoints, Points, SelectPen(), true );
927}
928
929// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
930void X11SalGraphics::drawPolyPolygon( sal_uInt32 nPoly,
930void X11SalGraphics::drawPolyPolygon( sal_uInt32 nPoly,
931 const sal_uInt32 *pPoints,
932 PCONSTSALPOINT *pPtAry )
933{
934 if( nBrushColor_ != SALCOLOR_NONE )
935 {
936 sal_uInt32 i, n;
937 XLIB_Region pXRegA = NULL;
938

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

971
972 if( nPenColor_ != SALCOLOR_NONE )
973 for( sal_uInt32 i = 0; i < nPoly; i++ )
974 drawPolyLine( pPoints[i], pPtAry[i], true );
975}
976
977// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
978
931 const sal_uInt32 *pPoints,
932 PCONSTSALPOINT *pPtAry )
933{
934 if( nBrushColor_ != SALCOLOR_NONE )
935 {
936 sal_uInt32 i, n;
937 XLIB_Region pXRegA = NULL;
938

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

971
972 if( nPenColor_ != SALCOLOR_NONE )
973 for( sal_uInt32 i = 0; i < nPoly; i++ )
974 drawPolyLine( pPoints[i], pPtAry[i], true );
975}
976
977// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
978
979sal_Bool X11SalGraphics::drawPolyLineBezier( sal_uLong, const SalPoint*, const BYTE* )
979sal_Bool X11SalGraphics::drawPolyLineBezier( sal_uInt32, const SalPoint*, const BYTE* )
980{
981 return sal_False;
982}
983
984// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
985
980{
981 return sal_False;
982}
983
984// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
985
986sal_Bool X11SalGraphics::drawPolygonBezier( sal_uLong, const SalPoint*, const BYTE* )
986sal_Bool X11SalGraphics::drawPolygonBezier( sal_uInt32, const SalPoint*, const BYTE* )
987{
988 return sal_False;
989}
990
991// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
992
993sal_Bool X11SalGraphics::drawPolyPolygonBezier( sal_uInt32, const sal_uInt32*,
994 const SalPoint* const*, const BYTE* const* )
995{
996 return sal_False;
997}
998
999// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1000
987{
988 return sal_False;
989}
990
991// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
992
993sal_Bool X11SalGraphics::drawPolyPolygonBezier( sal_uInt32, const sal_uInt32*,
994 const SalPoint* const*, const BYTE* const* )
995{
996 return sal_False;
997}
998
999// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1000
1001void X11SalGraphics::invert( sal_uLong nPoints,
1001void X11SalGraphics::invert( sal_uInt32 nPoints,
1002 const SalPoint* pPtAry,
1003 SalInvert nFlags )
1004{
1005 SalPolyLine Points ( nPoints, pPtAry );
1006
1007 GC pGC;
1008 if( SAL_INVERT_50 & nFlags )
1009 pGC = GetInvert50GC();

--- 291 unchanged lines hidden ---
1002 const SalPoint* pPtAry,
1003 SalInvert nFlags )
1004{
1005 SalPolyLine Points ( nPoints, pPtAry );
1006
1007 GC pGC;
1008 if( SAL_INVERT_50 & nFlags )
1009 pGC = GetInvert50GC();

--- 291 unchanged lines hidden ---