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
1419d851
Kaydet (Commit)
1419d851
authored
Kas 19, 2014
tarafından
Louis-Francis Ratté-Boulianne
Kaydeden (comit)
Jan Holesovsky
Kas 22, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: Implement copyArea in OpenGL backend
Change-Id: If98a2f39a7f3c3079abe7f5e293d7761db0ed8f9
üst
c0f1b99e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+19
-4
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
1419d851
...
...
@@ -1361,12 +1361,26 @@ bool OpenGLSalGraphicsImpl::drawPolyPolygonBezier(
// CopyArea --> No RasterOp, but ClipRegion
void
OpenGLSalGraphicsImpl
::
copyArea
(
long
/*nDestX*/
,
long
/*nDestY*/
,
long
/*nSrcX*/
,
long
/*nSrcY*/
,
long
/*nSrcWidth*/
,
long
/*nSrcHeight*/
,
long
nDestX
,
long
nDestY
,
long
nSrcX
,
long
nSrcY
,
long
nSrcWidth
,
long
nSrcHeight
,
sal_uInt16
/*nFlags*/
)
{
SAL_INFO
(
"vcl.opengl"
,
"::copyArea"
);
SAL_INFO
(
"vcl.opengl"
,
"::copyArea "
<<
nSrcX
<<
","
<<
nSrcY
<<
" >> "
<<
nDestX
<<
","
<<
nDestY
<<
" ("
<<
nSrcWidth
<<
","
<<
nSrcHeight
<<
")"
);
OpenGLTexture
aTexture
;
SalTwoRect
aPosAry
;
aPosAry
.
mnSrcX
=
0
;
aPosAry
.
mnSrcY
=
0
;
aPosAry
.
mnDestX
=
nDestX
;
aPosAry
.
mnDestY
=
nDestY
;
aPosAry
.
mnSrcWidth
=
aPosAry
.
mnDestWidth
=
nSrcWidth
;
aPosAry
.
mnSrcHeight
=
aPosAry
.
mnDestHeight
=
nSrcHeight
;
PreDraw
();
aTexture
=
OpenGLTexture
(
nSrcX
,
GetHeight
()
-
nSrcY
-
nSrcHeight
,
nSrcWidth
,
nSrcHeight
);
DrawTexture
(
aTexture
,
aPosAry
);
PostDraw
();
}
// CopyBits and DrawBitmap --> RasterOp and ClipRegion
...
...
@@ -1459,6 +1473,7 @@ SalBitmap* OpenGLSalGraphicsImpl::getBitmap( long nX, long nY, long nWidth, long
SAL_INFO
(
"vcl.opengl"
,
"::getBitmap "
<<
nX
<<
","
<<
nY
<<
" "
<<
nWidth
<<
"x"
<<
nHeight
);
PreDraw
();
nY
=
GetHeight
()
-
nHeight
-
nY
;
if
(
!
pBitmap
->
Create
(
maOffscreenTex
,
nX
,
nY
,
nWidth
,
nHeight
)
)
{
delete
pBitmap
;
...
...
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