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
a1778a4b
Kaydet (Commit)
a1778a4b
authored
Mar 04, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
seeing as we're using cairo-calls now we shouldn't need manual bounds checking
Change-Id: Id0b91600e69819bc158bda6c51d35169936299d0
üst
8a21cb8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
34 deletions
+3
-34
gtksalframe.cxx
vcl/unx/gtk/window/gtksalframe.cxx
+3
-34
No files found.
vcl/unx/gtk/window/gtksalframe.cxx
Dosyayı görüntüle @
a1778a4b
...
...
@@ -3406,45 +3406,14 @@ void GtkSalFrame::damaged (const basegfx::B2IBox& rDamageRect)
// we like 8byte aligned, it likes 4 - most odd.
void
GtkSalFrame
::
renderArea
(
cairo_t
*
cr
,
cairo_rectangle_t
*
area
)
{
if
(
!
m_aFrame
.
get
()
)
return
;
basebmp
::
RawMemorySharedArray
data
=
m_aFrame
->
getBuffer
();
basegfx
::
B2IVector
size
=
m_aFrame
->
getSize
();
long
ax
=
area
->
x
;
long
ay
=
area
->
y
;
long
awidth
=
area
->
width
;
long
aheight
=
area
->
height
;
// Sanity check bounds - we get some odd things here.
if
(
ax
>=
size
.
getX
()
)
ax
=
size
.
getX
()
-
1
;
if
(
ay
>=
size
.
getY
()
)
ay
=
size
.
getY
()
-
1
;
if
(
ax
<
0
)
{
ax
=
0
;
awidth
+=
ax
;
}
if
(
ay
<
0
)
{
ay
=
0
;
aheight
+=
ay
;
}
if
(
ax
+
awidth
>
size
.
getX
()
)
awidth
=
size
.
getX
()
-
ax
;
if
(
ay
+
aheight
>
size
.
getY
()
)
aheight
=
size
.
getY
()
-
ay
;
cairo_save
(
cr
);
cairo_surface_t
*
pSurface
=
cairo_get_target
(
getCairoContext
());
cairo_set_operator
(
cr
,
CAIRO_OPERATOR_OVER
);
cairo_set_source_surface
(
cr
,
pSurface
,
0
,
0
);
cairo_rectangle
(
cr
,
a
x
,
ay
,
awidth
,
a
height
);
cairo_rectangle
(
cr
,
a
rea
->
x
,
area
->
y
,
area
->
width
,
area
->
height
);
cairo_fill
(
cr
);
cairo_restore
(
cr
);
// Render red rectangles to show what was re-rendered ...
...
...
@@ -3453,7 +3422,7 @@ void GtkSalFrame::renderArea( cairo_t *cr, cairo_rectangle_t *area )
cairo_save
(
cr
);
cairo_set_line_width
(
cr
,
1.0
);
cairo_set_source_rgb
(
cr
,
1.0
,
0
,
0
);
cairo_rectangle
(
cr
,
a
x
+
1.0
,
ay
+
1.0
,
awidth
-
2.0
,
a
height
-
2.0
);
cairo_rectangle
(
cr
,
a
rea
->
x
+
1.0
,
area
->
y
+
1.0
,
area
->
width
-
2.0
,
area
->
height
-
2.0
);
cairo_stroke
(
cr
);
cairo_restore
(
cr
);
}
...
...
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