Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
25f935bf
Kaydet (Commit)
25f935bf
authored
Eyl 19, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
64-bit fixes
Change-Id: I268ccab01e030535f04ef1256dc702b07cbc6611
üst
591e23d0
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
77 additions
and
44 deletions
+77
-44
aqua11ytextattributeswrapper.mm
vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm
+1
-1
DropTarget.cxx
vcl/aqua/source/dtrans/DropTarget.cxx
+8
-1
PictToBmpFlt.cxx
vcl/aqua/source/dtrans/PictToBmpFlt.cxx
+13
-3
salatslayout.cxx
vcl/aqua/source/gdi/atsui/salatslayout.cxx
+4
-4
salcoretextlayout.cxx
vcl/aqua/source/gdi/coretext/salcoretextlayout.cxx
+2
-2
salgdi.cxx
vcl/aqua/source/gdi/coretext/salgdi.cxx
+1
-1
salbmp.cxx
vcl/aqua/source/gdi/salbmp.cxx
+1
-1
salgdicommon.cxx
vcl/aqua/source/gdi/salgdicommon.cxx
+21
-9
salnativewidgets.cxx
vcl/aqua/source/gdi/salnativewidgets.cxx
+1
-1
salprn.cxx
vcl/aqua/source/gdi/salprn.cxx
+1
-1
salframe.cxx
vcl/aqua/source/window/salframe.cxx
+3
-3
salframeview.mm
vcl/aqua/source/window/salframeview.mm
+3
-3
salgdi.h
vcl/inc/aqua/atsui/salgdi.h
+4
-4
common.h
vcl/inc/aqua/common.h
+1
-1
salcoretextlayout.hxx
vcl/inc/aqua/coretext/salcoretextlayout.hxx
+2
-2
salgdi.h
vcl/inc/aqua/coretext/salgdi.h
+8
-4
salframe.h
vcl/inc/aqua/salframe.h
+1
-1
salgdicommon.hxx
vcl/inc/aqua/salgdicommon.hxx
+2
-2
No files found.
vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm
Dosyayı görüntüle @
25f935bf
...
@@ -107,7 +107,7 @@ using namespace ::rtl;
...
@@ -107,7 +107,7 @@ using namespace ::rtl;
+(void)addColor:(sal_Int32)salColor forAttribute:(NSString *)attribute andRange:(NSRange)range toString:(NSMutableAttributedString *)string {
+(void)addColor:(sal_Int32)salColor forAttribute:(NSString *)attribute andRange:(NSRange)range toString:(NSMutableAttributedString *)string {
if ( salColor != -1 ) {
if ( salColor != -1 ) {
f
loat elements[] = { salColor & 0x00ff0000, salColor & 0x0000ff00, salColor & 0x000000ff };
CGF
loat elements[] = { salColor & 0x00ff0000, salColor & 0x0000ff00, salColor & 0x000000ff };
CGColorRef color = CGColorCreate ( CGColorSpaceCreateWithName ( kCGColorSpaceGenericRGB ), elements );
CGColorRef color = CGColorCreate ( CGColorSpaceCreateWithName ( kCGColorSpaceGenericRGB ), elements );
[ string addAttribute: attribute value: (id) color range: range ];
[ string addAttribute: attribute value: (id) color range: range ];
CGColorRelease ( color );
CGColorRelease ( color );
...
...
vcl/aqua/source/dtrans/DropTarget.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -296,6 +296,7 @@ NSDragOperation DropTarget::draggingUpdated(id sender)
...
@@ -296,6 +296,7 @@ NSDragOperation DropTarget::draggingUpdated(id sender)
//NSLog(@"Drag update: Source actions: %x proposed action %x selected action %x", mDragSourceSupportedActions, currentAction, mSelectedDropAction);
//NSLog(@"Drag update: Source actions: %x proposed action %x selected action %x", mDragSourceSupportedActions, currentAction, mSelectedDropAction);
}
}
#ifndef __LP64__
// Weird but it appears as if there is no method in Cocoa
// Weird but it appears as if there is no method in Cocoa
// to create a kThemeCopyArrowCursor hence we have to use
// to create a kThemeCopyArrowCursor hence we have to use
// Carbon to do it
// Carbon to do it
...
@@ -305,7 +306,9 @@ NSDragOperation DropTarget::draggingUpdated(id sender)
...
@@ -305,7 +306,9 @@ NSDragOperation DropTarget::draggingUpdated(id sender)
SetThemeCursor
(
kThemeCopyArrowCursor
);
SetThemeCursor
(
kThemeCopyArrowCursor
);
else
else
SetThemeCursor
(
kThemeArrowCursor
);
SetThemeCursor
(
kThemeArrowCursor
);
#else
// FIXME: SetThemeCursor replacement?
#endif
return
dragOp
;
return
dragOp
;
}
}
...
@@ -316,7 +319,9 @@ void DropTarget::draggingExited(id /*sender*/)
...
@@ -316,7 +319,9 @@ void DropTarget::draggingExited(id /*sender*/)
fire_dragExit
(
dte
);
fire_dragExit
(
dte
);
mDragSourceSupportedActions
=
DNDConstants
::
ACTION_NONE
;
mDragSourceSupportedActions
=
DNDConstants
::
ACTION_NONE
;
mSelectedDropAction
=
DNDConstants
::
ACTION_NONE
;
mSelectedDropAction
=
DNDConstants
::
ACTION_NONE
;
#ifndef __LP64__
SetThemeCursor
(
kThemeArrowCursor
);
SetThemeCursor
(
kThemeArrowCursor
);
#endif
}
}
...
@@ -370,7 +375,9 @@ void DropTarget::concludeDragOperation(id /*sender*/)
...
@@ -370,7 +375,9 @@ void DropTarget::concludeDragOperation(id /*sender*/)
mDragSourceSupportedActions
=
DNDConstants
::
ACTION_NONE
;
mDragSourceSupportedActions
=
DNDConstants
::
ACTION_NONE
;
mSelectedDropAction
=
DNDConstants
::
ACTION_NONE
;
mSelectedDropAction
=
DNDConstants
::
ACTION_NONE
;
mXCurrentDragClipboard
=
uno
::
Reference
<
XClipboard
>
();
mXCurrentDragClipboard
=
uno
::
Reference
<
XClipboard
>
();
#ifndef __LP64__
SetThemeCursor
(
kThemeArrowCursor
);
SetThemeCursor
(
kThemeArrowCursor
);
#endif
}
}
...
...
vcl/aqua/source/dtrans/PictToBmpFlt.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -39,6 +39,11 @@ bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
...
@@ -39,6 +39,11 @@ bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
bool
result
=
false
;
bool
result
=
false
;
#ifdef __LP64__
// FIXME
(
void
)
aPict
;
(
void
)
aBmp
;
#else
ComponentInstance
bmpExporter
;
ComponentInstance
bmpExporter
;
if
(
OpenADefaultComponent
(
GraphicsExporterComponentType
,
if
(
OpenADefaultComponent
(
GraphicsExporterComponentType
,
kQTFileTypeBMP
,
kQTFileTypeBMP
,
...
@@ -78,7 +83,7 @@ bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
...
@@ -78,7 +83,7 @@ bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
DisposeHandle
(
hPict
);
DisposeHandle
(
hPict
);
DisposeHandle
(
hBmp
);
DisposeHandle
(
hBmp
);
CloseComponent
(
bmpExporter
);
CloseComponent
(
bmpExporter
);
#endif
return
result
;
return
result
;
}
}
...
@@ -103,12 +108,17 @@ bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
...
@@ -103,12 +108,17 @@ bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
bool
result
=
false
;
bool
result
=
false
;
Handle
hBmp
;
Handle
hBmp
;
ComponentInstance
pictExporter
;
if
((
PtrToHand
(
aBmp
.
getArray
(),
&
hBmp
,
aBmp
.
getLength
())
!=
noErr
))
if
((
PtrToHand
(
aBmp
.
getArray
(),
&
hBmp
,
aBmp
.
getLength
())
!=
noErr
))
{
{
return
result
;
return
result
;
}
}
#ifdef __LP64__
// FIXME
(
void
)
aPict
;
#else
ComponentInstance
pictExporter
;
if
(
OpenADefaultComponent
(
GraphicsImporterComponentType
,
if
(
OpenADefaultComponent
(
GraphicsImporterComponentType
,
kQTFileTypeBMP
,
kQTFileTypeBMP
,
&
pictExporter
)
!=
noErr
)
&
pictExporter
)
!=
noErr
)
...
@@ -145,7 +155,7 @@ bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
...
@@ -145,7 +155,7 @@ bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
DisposeHandle
(
hBmp
);
DisposeHandle
(
hBmp
);
CloseComponent
(
pictExporter
);
CloseComponent
(
pictExporter
);
#endif
return
result
;
return
result
;
}
}
...
...
vcl/aqua/source/gdi/atsui/salatslayout.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -63,9 +63,9 @@ public:
...
@@ -63,9 +63,9 @@ public:
sal_Int32
*
pGlyphAdvances
,
int
*
pCharIndexes
)
const
;
sal_Int32
*
pGlyphAdvances
,
int
*
pCharIndexes
)
const
;
virtual
long
GetTextWidth
()
const
;
virtual
long
GetTextWidth
()
const
;
virtual
long
FillDXArray
(
long
*
pDXArray
)
const
;
virtual
long
FillDXArray
(
sal_Int32
*
pDXArray
)
const
;
virtual
int
GetTextBreak
(
long
nMaxWidth
,
long
nCharExtra
,
int
nFactor
)
const
;
virtual
int
GetTextBreak
(
long
nMaxWidth
,
long
nCharExtra
,
int
nFactor
)
const
;
virtual
void
GetCaretPositions
(
int
nArraySize
,
long
*
pCaretXArray
)
const
;
virtual
void
GetCaretPositions
(
int
nArraySize
,
sal_Int32
*
pCaretXArray
)
const
;
virtual
bool
GetGlyphOutlines
(
SalGraphics
&
,
PolyPolyVector
&
)
const
;
virtual
bool
GetGlyphOutlines
(
SalGraphics
&
,
PolyPolyVector
&
)
const
;
virtual
bool
GetBoundRect
(
SalGraphics
&
,
Rectangle
&
)
const
;
virtual
bool
GetBoundRect
(
SalGraphics
&
,
Rectangle
&
)
const
;
...
@@ -683,7 +683,7 @@ long ATSLayout::GetTextWidth() const
...
@@ -683,7 +683,7 @@ long ATSLayout::GetTextWidth() const
*
*
* @return : typographical width of the complete text layout
* @return : typographical width of the complete text layout
**/
**/
long
ATSLayout
::
FillDXArray
(
long
*
pDXArray
)
const
long
ATSLayout
::
FillDXArray
(
sal_Int32
*
pDXArray
)
const
{
{
// short circuit requests which don't need full details
// short circuit requests which don't need full details
if
(
!
pDXArray
)
if
(
!
pDXArray
)
...
@@ -809,7 +809,7 @@ int ATSLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) cons
...
@@ -809,7 +809,7 @@ int ATSLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) cons
*
*
* @return : none
* @return : none
**/
**/
void
ATSLayout
::
GetCaretPositions
(
int
nMaxIndex
,
long
*
pCaretXArray
)
const
void
ATSLayout
::
GetCaretPositions
(
int
nMaxIndex
,
sal_Int32
*
pCaretXArray
)
const
{
{
DBG_ASSERT
(
((
nMaxIndex
>
0
)
&&!
(
nMaxIndex
&
1
)),
DBG_ASSERT
(
((
nMaxIndex
>
0
)
&&!
(
nMaxIndex
&
1
)),
"ATSLayout::GetCaretPositions() : invalid number of caret pairs requested"
);
"ATSLayout::GetCaretPositions() : invalid number of caret pairs requested"
);
...
...
vcl/aqua/source/gdi/coretext/salcoretextlayout.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -134,7 +134,7 @@ void CoreTextLayout::DrawText( SalGraphics& rGraphics ) const
...
@@ -134,7 +134,7 @@ void CoreTextLayout::DrawText( SalGraphics& rGraphics ) const
// not needed. CoreText manage fallback directly
// not needed. CoreText manage fallback directly
void
CoreTextLayout
::
DropGlyph
(
int
/*nStart*/
)
{}
void
CoreTextLayout
::
DropGlyph
(
int
/*nStart*/
)
{}
long
CoreTextLayout
::
FillDXArray
(
long
*
pDXArray
)
const
long
CoreTextLayout
::
FillDXArray
(
sal_Int32
*
pDXArray
)
const
{
{
msgs_debug
(
layout
,
"-->"
);
msgs_debug
(
layout
,
"-->"
);
// short circuit requests which don't need full details
// short circuit requests which don't need full details
...
@@ -188,7 +188,7 @@ bool CoreTextLayout::GetBoundRect( SalGraphics& rGraphics, Rectangle& rVCLRect )
...
@@ -188,7 +188,7 @@ bool CoreTextLayout::GetBoundRect( SalGraphics& rGraphics, Rectangle& rVCLRect )
return
true
;
return
true
;
}
}
void
CoreTextLayout
::
GetCaretPositions
(
int
max_index
,
long
*
caret_position
)
const
void
CoreTextLayout
::
GetCaretPositions
(
int
max_index
,
sal_Int32
*
caret_position
)
const
{
{
msgs_debug
(
layout
,
"max_index %d -->"
,
max_index
);
msgs_debug
(
layout
,
"max_index %d -->"
,
max_index
);
int
local_max
=
max_index
<
m_chars_count
*
2
?
max_index
:
m_chars_count
;
int
local_max
=
max_index
<
m_chars_count
*
2
?
max_index
:
m_chars_count
;
...
...
vcl/aqua/source/gdi/coretext/salgdi.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -167,7 +167,7 @@ const ImplFontCharMap* AquaSalGraphics::GetImplFontCharMap() const
...
@@ -167,7 +167,7 @@ const ImplFontCharMap* AquaSalGraphics::GetImplFontCharMap() const
{
{
if
(
!
m_style
)
if
(
!
m_style
)
{
{
return
false
;
return
NULL
;
}
}
CoreTextPhysicalFontFace
*
font_face
=
m_style
->
GetFontFace
();
CoreTextPhysicalFontFace
*
font_face
=
m_style
->
GetFontFace
();
if
(
!
font_face
)
if
(
!
font_face
)
...
...
vcl/aqua/source/gdi/salbmp.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -781,7 +781,7 @@ CGImageRef AquaSalBitmap::CreateWithMask( const AquaSalBitmap& rMask,
...
@@ -781,7 +781,7 @@ CGImageRef AquaSalBitmap::CreateWithMask( const AquaSalBitmap& rMask,
CFRelease
(
xMask
);
CFRelease
(
xMask
);
CGDataProviderRef
xDataProvider
(
CGDataProviderCreateWithData
(
NULL
,
CGDataProviderRef
xDataProvider
(
CGDataProviderCreateWithData
(
NULL
,
pMaskMem
,
nHeight
*
nMaskBytesPerRow
,
&
CFRTLFree
)
);
pMaskMem
,
nHeight
*
nMaskBytesPerRow
,
&
CFRTLFree
)
);
static
const
f
loat
*
pDecode
=
NULL
;
static
const
CGF
loat
*
pDecode
=
NULL
;
xMask
=
CGImageMaskCreate
(
nWidth
,
nHeight
,
8
,
8
,
nMaskBytesPerRow
,
xDataProvider
,
pDecode
,
false
);
xMask
=
CGImageMaskCreate
(
nWidth
,
nHeight
,
8
,
8
,
nMaskBytesPerRow
,
xDataProvider
,
pDecode
,
false
);
CFRelease
(
xDataProvider
);
CFRelease
(
xDataProvider
);
CFRelease
(
xMaskContext
);
CFRelease
(
xMaskContext
);
...
...
vcl/aqua/source/gdi/salgdicommon.cxx
Dosyayı görüntüle @
25f935bf
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include <sal/types.h>
#include <sal/types.h>
#include <osl/file.hxx>
#include <osl/file.hxx>
...
@@ -118,7 +120,7 @@ static void AddPolyPolygonToPath( CGMutablePathRef xPath,
...
@@ -118,7 +120,7 @@ static void AddPolyPolygonToPath( CGMutablePathRef xPath,
sal_Bool
AquaSalGraphics
::
CreateFontSubset
(
const
rtl
::
OUString
&
rToFile
,
sal_Bool
AquaSalGraphics
::
CreateFontSubset
(
const
rtl
::
OUString
&
rToFile
,
const
PhysicalFontFace
*
pFontData
,
const
PhysicalFontFace
*
pFontData
,
long
*
pGlyphIDs
,
sal_uInt8
*
pEncoding
,
sal_Int32
*
pGlyphIDs
,
sal_uInt8
*
pEncoding
,
sal_Int32
*
pGlyphWidths
,
int
nGlyphCount
,
sal_Int32
*
pGlyphWidths
,
int
nGlyphCount
,
FontSubsetInfo
&
rInfo
)
FontSubsetInfo
&
rInfo
)
{
{
...
@@ -148,8 +150,16 @@ sal_Bool AquaSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
...
@@ -148,8 +150,16 @@ sal_Bool AquaSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
// make the subsetter provide the requested subset
// make the subsetter provide the requested subset
FILE
*
pOutFile
=
fopen
(
aToFile
.
getStr
(),
"wb"
);
FILE
*
pOutFile
=
fopen
(
aToFile
.
getStr
(),
"wb"
);
#ifdef __LP64__
long
*
pLongGlyphIDs
=
(
long
*
)
alloca
(
nGlyphCount
*
sizeof
(
long
));
for
(
int
i
=
0
;
i
<
nGlyphCount
;
i
++
)
pLongGlyphIDs
[
i
]
=
pGlyphIDs
[
i
];
bool
bRC
=
rInfo
.
CreateFontSubset
(
FontSubsetInfo
::
TYPE1_PFB
,
pOutFile
,
NULL
,
pLongGlyphIDs
,
pEncoding
,
nGlyphCount
,
pGlyphWidths
);
#else
bool
bRC
=
rInfo
.
CreateFontSubset
(
FontSubsetInfo
::
TYPE1_PFB
,
pOutFile
,
NULL
,
bool
bRC
=
rInfo
.
CreateFontSubset
(
FontSubsetInfo
::
TYPE1_PFB
,
pOutFile
,
NULL
,
pGlyphIDs
,
pEncoding
,
nGlyphCount
,
pGlyphWidths
);
pGlyphIDs
,
pEncoding
,
nGlyphCount
,
pGlyphWidths
);
#endif
fclose
(
pOutFile
);
fclose
(
pOutFile
);
return
bRC
;
return
bRC
;
}
}
...
@@ -798,7 +808,7 @@ bool AquaSalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPol
...
@@ -798,7 +808,7 @@ bool AquaSalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPol
return
true
;
return
true
;
}
}
void
AquaSalGraphics
::
drawPolyPolygon
(
sal_u
Long
nPolyCount
,
const
sal_uLong
*
pPoints
,
PCONSTSALPOINT
*
ppPtAry
)
void
AquaSalGraphics
::
drawPolyPolygon
(
sal_u
Int32
nPolyCount
,
const
sal_uInt32
*
pPoints
,
PCONSTSALPOINT
*
ppPtAry
)
{
{
if
(
nPolyCount
<=
0
)
if
(
nPolyCount
<=
0
)
return
;
return
;
...
@@ -957,7 +967,7 @@ sal_Bool AquaSalGraphics::drawPolygonBezier( sal_uLong, const SalPoint*, const s
...
@@ -957,7 +967,7 @@ sal_Bool AquaSalGraphics::drawPolygonBezier( sal_uLong, const SalPoint*, const s
return
sal_False
;
return
sal_False
;
}
}
sal_Bool
AquaSalGraphics
::
drawPolyPolygonBezier
(
sal_u
Long
,
const
sal_uLong
*
,
sal_Bool
AquaSalGraphics
::
drawPolyPolygonBezier
(
sal_u
Int32
,
const
sal_uInt32
*
,
const
SalPoint
*
const
*
,
const
sal_uInt8
*
const
*
)
const
SalPoint
*
const
*
,
const
sal_uInt8
*
const
*
)
{
{
return
sal_False
;
return
sal_False
;
...
@@ -1106,15 +1116,15 @@ SalColor AquaSalGraphics::getPixel( long nX, long nY )
...
@@ -1106,15 +1116,15 @@ SalColor AquaSalGraphics::getPixel( long nX, long nY )
return
nSalColor
;
return
nSalColor
;
}
}
void
AquaSalGraphics
::
GetResolution
(
long
&
rDPIX
,
long
&
rDPIY
)
void
AquaSalGraphics
::
GetResolution
(
sal_Int32
&
rDPIX
,
sal_Int32
&
rDPIY
)
{
{
if
(
!
mnRealDPIY
)
if
(
!
mnRealDPIY
)
{
{
initResolution
(
(
mbWindow
&&
mpFrame
)
?
mpFrame
->
mpWindow
:
nil
);
initResolution
(
(
mbWindow
&&
mpFrame
)
?
mpFrame
->
mpWindow
:
nil
);
}
}
rDPIX
=
static_cast
<
long
>
(
mfFakeDPIScale
*
mnRealDPIX
);
rDPIX
=
static_cast
<
sal_Int32
>
(
mfFakeDPIScale
*
mnRealDPIX
);
rDPIY
=
static_cast
<
long
>
(
mfFakeDPIScale
*
mnRealDPIY
);
rDPIY
=
static_cast
<
sal_Int32
>
(
mfFakeDPIScale
*
mnRealDPIY
);
}
}
void
AquaSalGraphics
::
ImplDrawPixel
(
long
nX
,
long
nY
,
const
RGBAColor
&
rColor
)
void
AquaSalGraphics
::
ImplDrawPixel
(
long
nX
,
long
nY
,
const
RGBAColor
&
rColor
)
...
@@ -1234,7 +1244,7 @@ void AquaSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalIn
...
@@ -1234,7 +1244,7 @@ void AquaSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalIn
if
(
nFlags
&
SAL_INVERT_TRACKFRAME
)
if
(
nFlags
&
SAL_INVERT_TRACKFRAME
)
{
{
const
f
loat
dashLengths
[
2
]
=
{
4.0
,
4.0
};
// for drawing dashed line
const
CGF
loat
dashLengths
[
2
]
=
{
4.0
,
4.0
};
// for drawing dashed line
CGContextSetBlendMode
(
mrContext
,
kCGBlendModeDifference
);
CGContextSetBlendMode
(
mrContext
,
kCGBlendModeDifference
);
CGContextSetRGBStrokeColor
(
mrContext
,
1.0
,
1.0
,
1.0
,
1.0
);
CGContextSetRGBStrokeColor
(
mrContext
,
1.0
,
1.0
,
1.0
,
1.0
);
CGContextSetLineDash
(
mrContext
,
0
,
dashLengths
,
2
);
CGContextSetLineDash
(
mrContext
,
0
,
dashLengths
,
2
);
...
@@ -1269,7 +1279,7 @@ void AquaSalGraphics::invert( sal_uLong nPoints, const SalPoint* pPtAry, SalInv
...
@@ -1269,7 +1279,7 @@ void AquaSalGraphics::invert( sal_uLong nPoints, const SalPoint* pPtAry, SalInv
CGContextAddLines
(
mrContext
,
CGpoints
,
nPoints
);
CGContextAddLines
(
mrContext
,
CGpoints
,
nPoints
);
if
(
nSalFlags
&
SAL_INVERT_TRACKFRAME
)
if
(
nSalFlags
&
SAL_INVERT_TRACKFRAME
)
{
{
const
f
loat
dashLengths
[
2
]
=
{
4.0
,
4.0
};
// for drawing dashed line
const
CGF
loat
dashLengths
[
2
]
=
{
4.0
,
4.0
};
// for drawing dashed line
CGContextSetBlendMode
(
mrContext
,
kCGBlendModeDifference
);
CGContextSetBlendMode
(
mrContext
,
kCGBlendModeDifference
);
CGContextSetRGBStrokeColor
(
mrContext
,
1.0
,
1.0
,
1.0
,
1.0
);
CGContextSetRGBStrokeColor
(
mrContext
,
1.0
,
1.0
,
1.0
,
1.0
);
CGContextSetLineDash
(
mrContext
,
0
,
dashLengths
,
2
);
CGContextSetLineDash
(
mrContext
,
0
,
dashLengths
,
2
);
...
@@ -1296,7 +1306,7 @@ void AquaSalGraphics::invert( sal_uLong nPoints, const SalPoint* pPtAry, SalInv
...
@@ -1296,7 +1306,7 @@ void AquaSalGraphics::invert( sal_uLong nPoints, const SalPoint* pPtAry, SalInv
void
AquaSalGraphics
::
Pattern50Fill
()
void
AquaSalGraphics
::
Pattern50Fill
()
{
{
static
const
f
loat
aFillCol
[
4
]
=
{
1
,
1
,
1
,
1
};
static
const
CGF
loat
aFillCol
[
4
]
=
{
1
,
1
,
1
,
1
};
static
const
CGPatternCallbacks
aCallback
=
{
0
,
&
DrawPattern50
,
NULL
};
static
const
CGPatternCallbacks
aCallback
=
{
0
,
&
DrawPattern50
,
NULL
};
if
(
!
GetSalData
()
->
mxP50Space
)
if
(
!
GetSalData
()
->
mxP50Space
)
{
{
...
@@ -1647,3 +1657,5 @@ bool XorEmulation::UpdateTarget()
...
@@ -1647,3 +1657,5 @@ bool XorEmulation::UpdateTarget()
// TODO: return FALSE if target was not changed
// TODO: return FALSE if target was not changed
return
true
;
return
true
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/aqua/source/gdi/salnativewidgets.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -709,7 +709,7 @@ sal_Bool AquaSalGraphics::drawNativeControl(ControlType nType,
...
@@ -709,7 +709,7 @@ sal_Bool AquaSalGraphics::drawNativeControl(ControlType nType,
// Perhaps some other HIThemeButtonDrawInfo setting would do the trick ?
// Perhaps some other HIThemeButtonDrawInfo setting would do the trick ?
CGContextSetShouldAntialias
(
mrContext
,
true
);
CGContextSetShouldAntialias
(
mrContext
,
true
);
f
loat
aGrey
[]
=
{
0.45
,
0.45
,
0.45
,
1.0
};
CGF
loat
aGrey
[]
=
{
0.45
,
0.45
,
0.45
,
1.0
};
CGContextSetFillColor
(
mrContext
,
aGrey
);
CGContextSetFillColor
(
mrContext
,
aGrey
);
CGContextBeginPath
(
mrContext
);
CGContextBeginPath
(
mrContext
);
float
x
=
rc
.
origin
.
x
+
rc
.
size
.
width
;
float
x
=
rc
.
origin
.
x
+
rc
.
size
.
width
;
...
...
vcl/aqua/source/gdi/salprn.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -343,7 +343,7 @@ void AquaSalInfoPrinter::GetPageInfo( const ImplJobSetup*,
...
@@ -343,7 +343,7 @@ void AquaSalInfoPrinter::GetPageInfo( const ImplJobSetup*,
{
{
if
(
mpPrintInfo
)
if
(
mpPrintInfo
)
{
{
long
nDPIX
=
72
,
nDPIY
=
72
;
sal_Int32
nDPIX
=
72
,
nDPIY
=
72
;
mpGraphics
->
GetResolution
(
nDPIX
,
nDPIY
);
mpGraphics
->
GetResolution
(
nDPIX
,
nDPIY
);
const
double
fXScaling
=
static_cast
<
double
>
(
nDPIX
)
/
72.0
,
const
double
fXScaling
=
static_cast
<
double
>
(
nDPIX
)
/
72.0
,
fYScaling
=
static_cast
<
double
>
(
nDPIY
)
/
72.0
;
fYScaling
=
static_cast
<
double
>
(
nDPIY
)
/
72.0
;
...
...
vcl/aqua/source/window/salframe.cxx
Dosyayı görüntüle @
25f935bf
...
@@ -1199,7 +1199,7 @@ static Color getColor( NSColor* pSysColor, const Color& rDefault, NSWindow* pWin
...
@@ -1199,7 +1199,7 @@ static Color getColor( NSColor* pSysColor, const Color& rDefault, NSWindow* pWin
NSColor
*
pRBGColor
=
[
pSysColor
colorUsingColorSpaceName
:
NSDeviceRGBColorSpace
device
:
[
pWin
deviceDescription
]];
NSColor
*
pRBGColor
=
[
pSysColor
colorUsingColorSpaceName
:
NSDeviceRGBColorSpace
device
:
[
pWin
deviceDescription
]];
if
(
pRBGColor
)
if
(
pRBGColor
)
{
{
f
loat
r
=
0
,
g
=
0
,
b
=
0
,
a
=
0
;
CGF
loat
r
=
0
,
g
=
0
,
b
=
0
,
a
=
0
;
[
pRBGColor
getRed
:
&
r
green
:
&
g
blue
:
&
b
alpha
:
&
a
];
[
pRBGColor
getRed
:
&
r
green
:
&
g
blue
:
&
b
alpha
:
&
a
];
aRet
=
Color
(
int
(
r
*
255.999
),
int
(
g
*
255.999
),
int
(
b
*
255.999
)
);
aRet
=
Color
(
int
(
r
*
255.999
),
int
(
g
*
255.999
),
int
(
b
*
255.999
)
);
/*
/*
...
@@ -1227,7 +1227,7 @@ static Font getFont( NSFont* pFont, long nDPIY, const Font& rDefault )
...
@@ -1227,7 +1227,7 @@ static Font getFont( NSFont* pFont, long nDPIY, const Font& rDefault )
return
aResult
;
return
aResult
;
}
}
void
AquaSalFrame
::
getResolution
(
long
&
o_rDPIX
,
long
&
o_rDPIY
)
void
AquaSalFrame
::
getResolution
(
sal_Int32
&
o_rDPIX
,
sal_Int32
&
o_rDPIY
)
{
{
if
(
!
mpGraphics
)
if
(
!
mpGraphics
)
{
{
...
@@ -1271,7 +1271,7 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
...
@@ -1271,7 +1271,7 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
// get the system font settings
// get the system font settings
Font
aAppFont
=
aStyleSettings
.
GetAppFont
();
Font
aAppFont
=
aStyleSettings
.
GetAppFont
();
long
nDPIX
=
72
,
nDPIY
=
72
;
sal_Int32
nDPIX
=
72
,
nDPIY
=
72
;
getResolution
(
nDPIX
,
nDPIY
);
getResolution
(
nDPIX
,
nDPIY
);
aAppFont
=
getFont
(
[
NSFont
systemFontOfSize
:
0
],
nDPIY
,
aAppFont
);
aAppFont
=
getFont
(
[
NSFont
systemFontOfSize
:
0
],
nDPIY
,
aAppFont
);
...
...
vcl/aqua/source/window/salframeview.mm
Dosyayı görüntüle @
25f935bf
...
@@ -133,9 +133,9 @@ static const struct ExceptionalKey
...
@@ -133,9 +133,9 @@ static const struct ExceptionalKey
static AquaSalFrame* getMouseContainerFrame()
static AquaSalFrame* getMouseContainerFrame()
{
{
int
nWindows = 0;
NSInteger
nWindows = 0;
NSCountWindows( &nWindows );
NSCountWindows( &nWindows );
int* pWindows = (int*)alloca( nWindows * sizeof(int
) );
NSInteger* pWindows = (NSInteger*)alloca( nWindows * sizeof(NSInteger
) );
// note: NSWindowList is supposed to be in z-order front to back
// note: NSWindowList is supposed to be in z-order front to back
NSWindowList( nWindows, pWindows );
NSWindowList( nWindows, pWindows );
AquaSalFrame* pDispatchFrame = NULL;
AquaSalFrame* pDispatchFrame = NULL;
...
@@ -1589,7 +1589,7 @@ private:
...
@@ -1589,7 +1589,7 @@ private:
return nil;
return nil;
}
}
- (
unsigned int
)characterIndexForPoint:(NSPoint)thePoint
- (
NSUInteger
)characterIndexForPoint:(NSPoint)thePoint
{
{
(void)thePoint;
(void)thePoint;
// FIXME
// FIXME
...
...
vcl/inc/aqua/atsui/salgdi.h
Dosyayı görüntüle @
25f935bf
...
@@ -181,11 +181,11 @@ public:
...
@@ -181,11 +181,11 @@ public:
virtual
void
drawRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
);
virtual
void
drawRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
);
virtual
void
drawPolyLine
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
);
virtual
void
drawPolyLine
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
);
virtual
void
drawPolygon
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
);
virtual
void
drawPolygon
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
);
virtual
void
drawPolyPolygon
(
sal_u
Long
nPoly
,
const
sal_uLong
*
pPoints
,
PCONSTSALPOINT
*
pPtAry
);
virtual
void
drawPolyPolygon
(
sal_u
Int32
nPoly
,
const
sal_uLong
*
pPoints
,
PCONSTSALPOINT
*
pPtAry
);
virtual
bool
drawPolyPolygon
(
const
::
basegfx
::
B2DPolyPolygon
&
,
double
fTransparency
);
virtual
bool
drawPolyPolygon
(
const
::
basegfx
::
B2DPolyPolygon
&
,
double
fTransparency
);
virtual
sal_Bool
drawPolyLineBezier
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
,
const
sal_uInt8
*
pFlgAry
);
virtual
sal_Bool
drawPolyLineBezier
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
,
const
sal_uInt8
*
pFlgAry
);
virtual
sal_Bool
drawPolygonBezier
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
,
const
sal_uInt8
*
pFlgAry
);
virtual
sal_Bool
drawPolygonBezier
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
,
const
sal_uInt8
*
pFlgAry
);
virtual
sal_Bool
drawPolyPolygonBezier
(
sal_u
Long
nPoly
,
const
sal_uLong
*
pPoints
,
const
SalPoint
*
const
*
pPtAry
,
const
sal_uInt8
*
const
*
pFlgAry
);
virtual
sal_Bool
drawPolyPolygonBezier
(
sal_u
Int32
nPoly
,
const
sal_uInt32
*
pPoints
,
const
SalPoint
*
const
*
pPtAry
,
const
sal_uInt8
*
const
*
pFlgAry
);
virtual
bool
drawPolyLine
(
const
::
basegfx
::
B2DPolygon
&
,
double
fTransparency
,
const
::
basegfx
::
B2DVector
&
rLineWidths
,
basegfx
::
B2DLineJoin
);
virtual
bool
drawPolyLine
(
const
::
basegfx
::
B2DPolygon
&
,
double
fTransparency
,
const
::
basegfx
::
B2DVector
&
rLineWidths
,
basegfx
::
B2DLineJoin
);
// CopyArea --> No RasterOp, but ClipRegion
// CopyArea --> No RasterOp, but ClipRegion
...
@@ -234,7 +234,7 @@ public:
...
@@ -234,7 +234,7 @@ public:
Rectangle
&
rNativeBoundingRegion
,
Rectangle
&
rNativeContentRegion
);
Rectangle
&
rNativeBoundingRegion
,
Rectangle
&
rNativeContentRegion
);
// get device resolution
// get device resolution
virtual
void
GetResolution
(
long
&
rDPIX
,
long
&
rDPIY
);
virtual
void
GetResolution
(
sal_Int32
&
rDPIX
,
sal_Int32
&
rDPIY
);
// get the depth of the device
// get the depth of the device
virtual
sal_uInt16
GetBitCount
()
const
;
virtual
sal_uInt16
GetBitCount
()
const
;
// get the width of the device
// get the width of the device
...
@@ -292,7 +292,7 @@ public:
...
@@ -292,7 +292,7 @@ public:
// as "undefined character"
// as "undefined character"
virtual
sal_Bool
CreateFontSubset
(
const
rtl
::
OUString
&
rToFile
,
virtual
sal_Bool
CreateFontSubset
(
const
rtl
::
OUString
&
rToFile
,
const
PhysicalFontFace
*
pFont
,
const
PhysicalFontFace
*
pFont
,
long
*
pGlyphIDs
,
sal_Int32
*
pGlyphIDs
,
sal_uInt8
*
pEncoding
,
sal_uInt8
*
pEncoding
,
sal_Int32
*
pWidths
,
sal_Int32
*
pWidths
,
int
nGlyphs
,
int
nGlyphs
,
...
...
vcl/inc/aqua/common.h
Dosyayı görüntüle @
25f935bf
...
@@ -26,6 +26,6 @@
...
@@ -26,6 +26,6 @@
// fprintf(stderr, "%s::%s(%p:%04.4x)\n", this, #c, __func__, 0, __VA_ARGS__ )
// fprintf(stderr, "%s::%s(%p:%04.4x)\n", this, #c, __func__, 0, __VA_ARGS__ )
#define msgs_debug(c,f,...) \
#define msgs_debug(c,f,...) \
fprintf(stderr, "%s::%s(%p:%4.4u)" f "\n", #c, __func__, this, (
(unsigned int)pthread_self() & 8191
), ##__VA_ARGS__ );
fprintf(stderr, "%s::%s(%p:%4.4u)" f "\n", #c, __func__, this, (
unsigned int)((sal_uInt64)pthread_self() & 0x1FFF
), ##__VA_ARGS__ );
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/inc/aqua/coretext/salcoretextlayout.hxx
Dosyayı görüntüle @
25f935bf
...
@@ -19,9 +19,9 @@ public:
...
@@ -19,9 +19,9 @@ public:
virtual
void
AdjustLayout
(
ImplLayoutArgs
&
);
virtual
void
AdjustLayout
(
ImplLayoutArgs
&
);
virtual
void
DrawText
(
SalGraphics
&
)
const
;
virtual
void
DrawText
(
SalGraphics
&
)
const
;
virtual
void
DropGlyph
(
int
nStart
);
virtual
void
DropGlyph
(
int
nStart
);
virtual
long
FillDXArray
(
long
*
pDXArray
)
const
;
virtual
long
FillDXArray
(
sal_Int32
*
pDXArray
)
const
;
virtual
bool
GetBoundRect
(
SalGraphics
&
,
Rectangle
&
)
const
;
virtual
bool
GetBoundRect
(
SalGraphics
&
,
Rectangle
&
)
const
;
virtual
void
GetCaretPositions
(
int
nArraySize
,
long
*
pCaretXArray
)
const
;
virtual
void
GetCaretPositions
(
int
nArraySize
,
sal_Int32
*
pCaretXArray
)
const
;
virtual
bool
GetGlyphOutlines
(
SalGraphics
&
,
PolyPolyVector
&
)
const
;
virtual
bool
GetGlyphOutlines
(
SalGraphics
&
,
PolyPolyVector
&
)
const
;
virtual
int
GetNextGlyphs
(
int
nLen
,
sal_GlyphId
*
pGlyphs
,
Point
&
rPos
,
int
&
,
virtual
int
GetNextGlyphs
(
int
nLen
,
sal_GlyphId
*
pGlyphs
,
Point
&
rPos
,
int
&
,
sal_Int32
*
pGlyphAdvances
,
int
*
pCharIndexes
)
const
;
sal_Int32
*
pGlyphAdvances
,
int
*
pCharIndexes
)
const
;
...
...
vcl/inc/aqua/coretext/salgdi.h
Dosyayı görüntüle @
25f935bf
...
@@ -84,7 +84,9 @@ public:
...
@@ -84,7 +84,9 @@ public:
bool
CheckContext
();
bool
CheckContext
();
CGContextRef
GetContext
();
CGContextRef
GetContext
();
void
UpdateWindow
(
NSRect
&
);
// delivered in NSView coordinates
void
UpdateWindow
(
NSRect
&
);
// delivered in NSView coordinates
#if !defined(__LP64__) && !defined(NS_BUILD_32_LIKE_64)
void
RefreshRect
(
const
CGRect
&
);
void
RefreshRect
(
const
CGRect
&
);
#endif
void
RefreshRect
(
const
NSRect
&
);
void
RefreshRect
(
const
NSRect
&
);
void
RefreshRect
(
float
lX
,
float
lY
,
float
lWidth
,
float
lHeight
);
void
RefreshRect
(
float
lX
,
float
lY
,
float
lWidth
,
float
lHeight
);
...
@@ -102,11 +104,11 @@ public:
...
@@ -102,11 +104,11 @@ public:
virtual
void
drawRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
);
virtual
void
drawRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
);
virtual
void
drawPolyLine
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
);
virtual
void
drawPolyLine
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
);
virtual
void
drawPolygon
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
);
virtual
void
drawPolygon
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
);
virtual
void
drawPolyPolygon
(
sal_u
Long
nPoly
,
const
sal_uLong
*
pPoints
,
PCONSTSALPOINT
*
pPtAry
);
virtual
void
drawPolyPolygon
(
sal_u
Int32
nPoly
,
const
sal_uInt32
*
pPoints
,
PCONSTSALPOINT
*
pPtAry
);
virtual
bool
drawPolyPolygon
(
const
::
basegfx
::
B2DPolyPolygon
&
,
double
fTransparency
);
virtual
bool
drawPolyPolygon
(
const
::
basegfx
::
B2DPolyPolygon
&
,
double
fTransparency
);
virtual
sal_Bool
drawPolyLineBezier
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
,
const
sal_uInt8
*
pFlgAry
);
virtual
sal_Bool
drawPolyLineBezier
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
,
const
sal_uInt8
*
pFlgAry
);
virtual
sal_Bool
drawPolygonBezier
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
,
const
sal_uInt8
*
pFlgAry
);
virtual
sal_Bool
drawPolygonBezier
(
sal_uLong
nPoints
,
const
SalPoint
*
pPtAry
,
const
sal_uInt8
*
pFlgAry
);
virtual
sal_Bool
drawPolyPolygonBezier
(
sal_u
Long
nPoly
,
const
sal_uLong
*
pPoints
,
virtual
sal_Bool
drawPolyPolygonBezier
(
sal_u
Int32
nPoly
,
const
sal_uInt32
*
pPoints
,
const
SalPoint
*
const
*
pPtAry
,
const
sal_uInt8
*
const
*
pFlgAry
);
const
SalPoint
*
const
*
pPtAry
,
const
sal_uInt8
*
const
*
pFlgAry
);
virtual
bool
drawPolyLine
(
const
::
basegfx
::
B2DPolygon
&
,
double
fTransparency
,
virtual
bool
drawPolyLine
(
const
::
basegfx
::
B2DPolygon
&
,
double
fTransparency
,
const
::
basegfx
::
B2DVector
&
rLineWidths
,
basegfx
::
B2DLineJoin
);
const
::
basegfx
::
B2DVector
&
rLineWidths
,
basegfx
::
B2DLineJoin
);
...
@@ -159,7 +161,7 @@ public:
...
@@ -159,7 +161,7 @@ public:
Rectangle
&
rNativeContentRegion
);
Rectangle
&
rNativeContentRegion
);
// get device resolution
// get device resolution
virtual
void
GetResolution
(
long
&
rDPIX
,
long
&
rDPIY
);
virtual
void
GetResolution
(
sal_Int32
&
rDPIX
,
sal_Int32
&
rDPIY
);
// get the depth of the device
// get the depth of the device
virtual
sal_uInt16
GetBitCount
()
const
;
virtual
sal_uInt16
GetBitCount
()
const
;
// get the width of the device
// get the width of the device
...
@@ -218,7 +220,7 @@ public:
...
@@ -218,7 +220,7 @@ public:
// as "undefined character"
// as "undefined character"
virtual
sal_Bool
CreateFontSubset
(
const
rtl
::
OUString
&
rToFile
,
virtual
sal_Bool
CreateFontSubset
(
const
rtl
::
OUString
&
rToFile
,
const
PhysicalFontFace
*
pFont
,
const
PhysicalFontFace
*
pFont
,
long
*
pGlyphIDs
,
sal_Int32
*
pGlyphIDs
,
sal_uInt8
*
pEncoding
,
sal_uInt8
*
pEncoding
,
sal_Int32
*
pWidths
,
sal_Int32
*
pWidths
,
int
nGlyphs
,
int
nGlyphs
,
...
@@ -282,10 +284,12 @@ private:
...
@@ -282,10 +284,12 @@ private:
bool
*
pJustCFF
);
bool
*
pJustCFF
);
};
};
#if !defined(__LP64__) && !defined(NS_BUILD_32_LIKE_64)
inline
void
AquaSalGraphics
::
RefreshRect
(
const
CGRect
&
rRect
)
inline
void
AquaSalGraphics
::
RefreshRect
(
const
CGRect
&
rRect
)
{
{
RefreshRect
(
rRect
.
origin
.
x
,
rRect
.
origin
.
y
,
rRect
.
size
.
width
,
rRect
.
size
.
height
);
RefreshRect
(
rRect
.
origin
.
x
,
rRect
.
origin
.
y
,
rRect
.
size
.
width
,
rRect
.
size
.
height
);
}
}
#endif
inline
void
AquaSalGraphics
::
RefreshRect
(
const
NSRect
&
rRect
)
inline
void
AquaSalGraphics
::
RefreshRect
(
const
NSRect
&
rRect
)
{
{
...
...
vcl/inc/aqua/salframe.h
Dosyayı görüntüle @
25f935bf
...
@@ -184,7 +184,7 @@ public:
...
@@ -184,7 +184,7 @@ public:
NSView
*
getView
()
const
{
return
mpView
;
}
NSView
*
getView
()
const
{
return
mpView
;
}
unsigned
int
getStyleMask
()
const
{
return
mnStyleMask
;
}
unsigned
int
getStyleMask
()
const
{
return
mnStyleMask
;
}
void
getResolution
(
long
&
o_rDPIX
,
long
&
o_rDPIY
);
void
getResolution
(
sal_Int32
&
o_rDPIX
,
sal_Int32
&
o_rDPIY
);
// actually the follwing methods do the same thing: flipping y coordinates
// actually the follwing methods do the same thing: flipping y coordinates
// but having two of them makes clearer what the coordinate system
// but having two of them makes clearer what the coordinate system
...
...
vcl/inc/aqua/salgdicommon.hxx
Dosyayı görüntüle @
25f935bf
...
@@ -9,11 +9,11 @@ class RGBAColor
...
@@ -9,11 +9,11 @@ class RGBAColor
public
:
public
:
RGBAColor
(
SalColor
);
RGBAColor
(
SalColor
);
RGBAColor
(
float
fRed
,
float
fGreen
,
float
fBlue
,
float
fAlpha
);
//NOTUSEDYET
RGBAColor
(
float
fRed
,
float
fGreen
,
float
fBlue
,
float
fAlpha
);
//NOTUSEDYET
const
f
loat
*
AsArray
()
const
{
return
m_fRGBA
;
}
const
CGF
loat
*
AsArray
()
const
{
return
m_fRGBA
;
}
bool
IsVisible
()
const
{
return
m_fRGBA
[
3
]
>
0
;
}
bool
IsVisible
()
const
{
return
m_fRGBA
[
3
]
>
0
;
}
void
SetAlpha
(
float
fAlpha
)
{
m_fRGBA
[
3
]
=
fAlpha
;
}
void
SetAlpha
(
float
fAlpha
)
{
m_fRGBA
[
3
]
=
fAlpha
;
}
private
:
private
:
f
loat
m_fRGBA
[
4
];
// red, green, blue, alpha
CGF
loat
m_fRGBA
[
4
];
// red, green, blue, alpha
};
};
inline
RGBAColor
::
RGBAColor
(
SalColor
nSalColor
)
inline
RGBAColor
::
RGBAColor
(
SalColor
nSalColor
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment