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
bfc9d72d
Kaydet (Commit)
bfc9d72d
authored
Ock 31, 2012
tarafından
Radek Doulik
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix rendering of metafiles embedded in emf+ (updated)
üst
965f3ae4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
18 deletions
+25
-18
gdimtf.cxx
vcl/source/gdi/gdimtf.cxx
+25
-18
No files found.
vcl/source/gdi/gdimtf.cxx
Dosyayı görüntüle @
bfc9d72d
...
...
@@ -406,29 +406,32 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos )
pOut
->
SetLayoutMode
(
0
);
pOut
->
SetDigitLanguage
(
0
);
for
(
size_t
nCurPos
=
nCurrentActionElement
;
nCurPos
<
nPos
;
nCurPos
++
)
{
if
(
!
Hook
()
)
OSL_TRACE
(
"GDIMetaFile::Play on device of size: %d x %d"
,
pOut
->
GetOutputSizePixel
().
Width
(),
pOut
->
GetOutputSizePixel
().
Height
());
if
(
!
ImplPlayWithRenderer
(
pOut
,
Point
(
0
,
0
),
pOut
->
GetOutputSizePixel
()
)
)
{
for
(
size_t
nCurPos
=
nCurrentActionElement
;
nCurPos
<
nPos
;
nCurPos
++
)
{
MetaCommentAction
*
pCommentAct
=
static_cast
<
MetaCommentAction
*>
(
pAction
);
if
(
pAction
->
GetType
()
==
META_COMMENT_ACTION
&&
pCommentAct
->
GetComment
().
equalsL
(
RTL_CONSTASCII_STRINGPARAM
(
"DELEGATE_PLUGGABLE_RENDERER"
))
)
if
(
!
Hook
()
)
{
ImplDelegate2PluggableRenderer
(
pCommentAct
,
pOut
);
}
else
{
pAction
->
Execute
(
pOut
);
MetaCommentAction
*
pCommentAct
=
static_cast
<
MetaCommentAction
*>
(
pAction
);
if
(
pAction
->
GetType
()
==
META_COMMENT_ACTION
&&
pCommentAct
->
GetComment
().
equalsL
(
RTL_CONSTASCII_STRINGPARAM
(
"DELEGATE_PLUGGABLE_RENDERER"
))
)
{
ImplDelegate2PluggableRenderer
(
pCommentAct
,
pOut
);
}
else
{
pAction
->
Execute
(
pOut
);
}
// flush output from time to time
if
(
i
++
>
nSyncCount
)
(
(
Window
*
)
pOut
)
->
Flush
(),
i
=
0
;
}
// flush output from time to time
if
(
i
++
>
nSyncCount
)
(
(
Window
*
)
pOut
)
->
Flush
(),
i
=
0
;
pAction
=
NextAction
();
}
pAction
=
NextAction
();
}
pOut
->
Pop
();
}
}
...
...
@@ -437,6 +440,9 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos )
bool
GDIMetaFile
::
ImplPlayWithRenderer
(
OutputDevice
*
pOut
,
const
Point
&
rPos
,
Size
rDestSize
)
{
if
(
!
bUseCanvas
)
return
false
;
const
Window
*
win
=
dynamic_cast
<
Window
*>
(
pOut
);
if
(
!
win
)
...
...
@@ -608,7 +614,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, const Point& rPos,
{
GDIMetaFile
*
pMtf
=
pOut
->
GetConnectMetaFile
();
if
(
bUseCanvas
&&
!
pMtf
&&
ImplPlayWithRenderer
(
pOut
,
rPos
,
aDestSize
)
)
if
(
ImplPlayWithRenderer
(
pOut
,
rPos
,
aDestSize
)
)
return
;
Size
aTmpPrefSize
(
pOut
->
LogicToPixel
(
GetPrefSize
(),
aDrawMap
)
);
...
...
@@ -2042,6 +2048,7 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
aMtf
.
aPrefSize
=
aPrefSize
;
aMtf
.
aPrefMapMode
=
aPrefMapMode
;
aMtf
.
bUseCanvas
=
bUseCanvas
;
for
(
MetaAction
*
pAction
=
FirstAction
();
pAction
;
pAction
=
NextAction
()
)
{
...
...
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