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
482faead
Kaydet (Commit)
482faead
authored
Kas 05, 2014
tarafından
Louis-Francis Ratté-Boulianne
Kaydeden (comit)
Markus Mohrhard
Kas 10, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: OpenGL coordinates are the inverse of VCL ones
Change-Id: I6c45673d3f438323d43b042e41d3401be280f6a4
üst
23aca19d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+4
-4
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
482faead
...
...
@@ -310,9 +310,9 @@ void OpenGLSalGraphicsImpl::DrawConvexPolygon( sal_uInt32 nPoints, const SalPoin
void
OpenGLSalGraphicsImpl
::
DrawRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
)
{
long
nX1
(
nX
);
long
nY1
(
nY
);
long
nY1
(
GetHeight
()
-
nY
);
long
nX2
(
nX
+
nWidth
);
long
nY2
(
nY
+
nHeight
);
long
nY2
(
GetHeight
()
-
nY
-
nHeight
);
const
SalPoint
aPoints
[]
=
{
{
nX1
,
nY2
},
{
nX1
,
nY1
},
{
nX2
,
nY1
},
{
nX2
,
nY2
}};
...
...
@@ -386,8 +386,8 @@ void OpenGLSalGraphicsImpl::DrawTextureRect( const Size& rSize, const SalTwoRect
aTexCoord
[
0
]
=
aTexCoord
[
2
]
=
rPosAry
.
mnSrcX
/
(
double
)
rSize
.
Width
();
aTexCoord
[
4
]
=
aTexCoord
[
6
]
=
(
rPosAry
.
mnSrcX
+
rPosAry
.
mnSrcWidth
)
/
(
double
)
rSize
.
Width
();
aTexCoord
[
3
]
=
aTexCoord
[
5
]
=
rPosAry
.
mnSrcY
/
(
double
)
rSize
.
Height
();
aTexCoord
[
1
]
=
aTexCoord
[
7
]
=
(
r
PosAry
.
mnSrcY
+
rPosAry
.
mnSrcHeight
)
/
(
double
)
rSize
.
Height
();
aTexCoord
[
3
]
=
aTexCoord
[
5
]
=
(
rSize
.
Height
()
-
rPosAry
.
mnSrcY
)
/
(
double
)
rSize
.
Height
();
aTexCoord
[
1
]
=
aTexCoord
[
7
]
=
(
r
Size
.
Height
()
-
rPosAry
.
mnSrcY
-
rPosAry
.
mnSrcHeight
)
/
(
double
)
rSize
.
Height
();
glEnableVertexAttribArray
(
GL_ATTRIB_TEX
);
glVertexAttribPointer
(
GL_ATTRIB_TEX
,
2
,
GL_FLOAT
,
GL_FALSE
,
0
,
aTexCoord
);
...
...
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