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
7d69e253
Kaydet (Commit)
7d69e253
authored
May 07, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl WMF: some code clean-up
Change-Id: I0b8d433d3d3bf03e3f414b2586a718146380ee2a
üst
618d33c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
winmtf.cxx
vcl/source/filter/wmf/winmtf.cxx
+11
-8
winwmf.cxx
vcl/source/filter/wmf/winwmf.cxx
+2
-2
No files found.
vcl/source/filter/wmf/winmtf.cxx
Dosyayı görüntüle @
7d69e253
...
...
@@ -784,8 +784,8 @@ void WinMtfOutput::MoveClipRegion( const Size& rSize )
void
WinMtfOutput
::
SetClipPath
(
const
PolyPolygon
&
rPolyPolygon
,
sal_Int32
nClippingMode
,
bool
bIsMapped
)
{
mbClipNeedsUpdate
=
true
;
if
(
bIsMapped
)
mbClipNeedsUpdate
=
true
;
if
(
bIsMapped
)
{
PolyPolygon
aPP
(
rPolyPolygon
);
aClipPath
.
setClipPath
(
ImplScale
(
aPP
),
nClippingMode
);
...
...
@@ -845,7 +845,7 @@ WinMtfOutput::WinMtfOutput( GDIMetaFile& rGDIMetaFile ) :
mnRop
=
R2_BLACK
+
1
;
SetRasterOp
(
R2_BLACK
);
}
;
}
WinMtfOutput
::~
WinMtfOutput
()
{
...
...
@@ -858,7 +858,7 @@ WinMtfOutput::~WinMtfOutput()
for
(
sal_uInt32
i
=
0
;
i
<
vGDIObj
.
size
();
i
++
)
delete
vGDIObj
[
i
];
}
;
}
void
WinMtfOutput
::
UpdateClipRegion
()
{
...
...
@@ -1827,14 +1827,17 @@ void WinMtfOutput::SetDevByWin() //mnWinExt...-stuff has to be assigned before.
{
if
(
mnMapMode
==
MM_ISOTROPIC
)
//TODO: WHAT ABOUT ANISOTROPIC???
{
SetDevExt
(
Size
((
mnWinExtX
+
mnWinOrgX
)
>>
MS_FIXPOINT_BITCOUNT_28_4
,
-
((
mnWinExtY
-
mnWinOrgY
)
>>
MS_FIXPOINT_BITCOUNT_28_4
)),
false
);
Size
aSize
(
(
mnWinExtX
+
mnWinOrgX
)
>>
MS_FIXPOINT_BITCOUNT_28_4
,
-
((
mnWinExtY
-
mnWinOrgY
)
>>
MS_FIXPOINT_BITCOUNT_28_4
));
SetDevExt
(
aSize
,
false
);
}
}
}
void
WinMtfOutput
::
SetWinExt
(
const
Size
&
rSize
,
bool
bIsEMF
)
void
WinMtfOutput
::
SetWinExt
(
const
Size
&
rSize
,
bool
bIsEMF
)
{
if
(
rSize
.
Width
()
&&
rSize
.
Height
()
)
if
(
rSize
.
Width
()
&&
rSize
.
Height
()
)
{
switch
(
mnMapMode
)
{
...
...
@@ -1847,7 +1850,7 @@ void WinMtfOutput::SetWinExt( const Size& rSize, bool bIsEMF )
{
SetDevByWin
();
}
mbIsMapWinSet
=
true
;
mbIsMapWinSet
=
true
;
}
}
}
...
...
vcl/source/filter/wmf/winwmf.cxx
Dosyayı görüntüle @
7d69e253
...
...
@@ -464,7 +464,8 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
pWMF
->
ReadInt32
(
nRecordSize
);
pWMF
->
SeekRel
(
2
);
aPosition
=
ReadYX
();
pWMF
->
ReadUInt16
(
nLen
).
ReadUInt16
(
nOptions
);
pWMF
->
ReadUInt16
(
nLen
);
pWMF
->
ReadUInt16
(
nOptions
);
sal_Int32
nTextLayoutMode
=
TEXT_LAYOUT_DEFAULT
;
if
(
nOptions
&
ETO_RTLREADING
)
...
...
@@ -1560,7 +1561,6 @@ bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm )
pStm
->
SetError
(
SVSTREAM_FILEFORMAT_ERROR
);
bRet
=
false
;
}
}
}
else
...
...
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