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
2a591848
Kaydet (Commit)
2a591848
authored
Nis 23, 2014
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unnecessary OUTDEV_INIT() macro in VCL's outdev.hxx
Change-Id: I0eba1f88f607ba1faf40d8507bb184bdc88085be
üst
2bf2bc2c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
22 deletions
+72
-22
outdev.hxx
include/vcl/outdev.hxx
+0
-16
bitmap.cxx
vcl/source/outdev/bitmap.cxx
+24
-2
mask.cxx
vcl/source/outdev/mask.cxx
+12
-1
outdev.cxx
vcl/source/outdev/outdev.cxx
+36
-3
No files found.
include/vcl/outdev.hxx
Dosyayı görüntüle @
2a591848
...
...
@@ -50,22 +50,6 @@
#define GLYPH_FONT_HEIGHT 256
#endif
#define OUTDEV_INIT() \
{ \
if ( !IsDeviceOutputNecessary() ) \
return; \
\
if ( !mpGraphics ) \
if ( !AcquireGraphics() ) \
return; \
\
if ( mbInitClipRegion ) \
ImplInitClipRegion(); \
\
if ( mbOutputClipped ) \
return; \
}
struct
ImplOutDevData
;
class
ImplFontEntry
;
struct
ImplObjStack
;
...
...
vcl/source/outdev/bitmap.cxx
Dosyayı görüntüle @
2a591848
...
...
@@ -121,7 +121,18 @@ void OutputDevice::DrawBitmap( const Point& rDestPt, const Size& rDestSize,
}
}
OUTDEV_INIT
();
if
(
!
IsDeviceOutputNecessary
()
)
return
;
if
(
!
mpGraphics
)
if
(
!
AcquireGraphics
()
)
return
;
if
(
mbInitClipRegion
)
ImplInitClipRegion
();
if
(
mbOutputClipped
)
return
;
if
(
!
aBmp
.
IsEmpty
()
)
{
...
...
@@ -346,7 +357,18 @@ void OutputDevice::DrawBitmapEx( const Point& rDestPt, const Size& rDestSize,
}
}
OUTDEV_INIT
();
if
(
!
IsDeviceOutputNecessary
()
)
return
;
if
(
!
mpGraphics
)
if
(
!
AcquireGraphics
()
)
return
;
if
(
mbInitClipRegion
)
ImplInitClipRegion
();
if
(
mbOutputClipped
)
return
;
DrawDeviceBitmap
(
rDestPt
,
rDestSize
,
rSrcPtPixel
,
rSrcSizePixel
,
aBmpEx
);
}
...
...
vcl/source/outdev/mask.cxx
Dosyayı görüntüle @
2a591848
...
...
@@ -94,7 +94,18 @@ void OutputDevice::DrawMask( const Point& rDestPt, const Size& rDestSize,
}
}
OUTDEV_INIT
();
if
(
!
IsDeviceOutputNecessary
()
)
return
;
if
(
!
mpGraphics
)
if
(
!
AcquireGraphics
()
)
return
;
if
(
mbInitClipRegion
)
ImplInitClipRegion
();
if
(
mbOutputClipped
)
return
;
ApplyMask
(
rBitmap
,
rMaskColor
,
rDestPt
,
rDestSize
,
rSrcPtPixel
,
rSrcSizePixel
);
...
...
vcl/source/outdev/outdev.cxx
Dosyayı görüntüle @
2a591848
...
...
@@ -566,7 +566,18 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize,
mpMetaFile
->
AddAction
(
new
MetaBmpScaleAction
(
rDestPt
,
rDestSize
,
aBmp
)
);
}
OUTDEV_INIT
();
if
(
!
IsDeviceOutputNecessary
()
)
return
;
if
(
!
mpGraphics
)
if
(
!
AcquireGraphics
()
)
return
;
if
(
mbInitClipRegion
)
ImplInitClipRegion
();
if
(
mbOutputClipped
)
return
;
SalTwoRect
aPosAry
;
aPosAry
.
mnSrcWidth
=
ImplLogicWidthToDevicePixel
(
rSrcSize
.
Width
()
);
...
...
@@ -613,7 +624,18 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize,
mpMetaFile
->
AddAction
(
new
MetaBmpScaleAction
(
rDestPt
,
rDestSize
,
aBmp
)
);
}
OUTDEV_INIT
();
if
(
!
IsDeviceOutputNecessary
()
)
return
;
if
(
!
mpGraphics
)
if
(
!
AcquireGraphics
()
)
return
;
if
(
mbInitClipRegion
)
ImplInitClipRegion
();
if
(
mbOutputClipped
)
return
;
SalTwoRect
aPosAry
;
aPosAry
.
mnSrcX
=
rOutDev
.
ImplLogicXToDevicePixel
(
rSrcPt
.
X
()
);
...
...
@@ -665,7 +687,18 @@ void OutputDevice::CopyArea( const Point& rDestPt,
RasterOp
eOldRop
=
GetRasterOp
();
SetRasterOp
(
ROP_OVERPAINT
);
OUTDEV_INIT
();
if
(
!
IsDeviceOutputNecessary
()
)
return
;
if
(
!
mpGraphics
)
if
(
!
AcquireGraphics
()
)
return
;
if
(
mbInitClipRegion
)
ImplInitClipRegion
();
if
(
mbOutputClipped
)
return
;
SalTwoRect
aPosAry
;
aPosAry
.
mnSrcWidth
=
ImplLogicWidthToDevicePixel
(
rSrcSize
.
Width
()
);
...
...
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