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
563bfd69
Kaydet (Commit)
563bfd69
authored
Mar 04, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rely on cairo to do the clipping for us
Change-Id: Ie79614027a35e09cd95ee0cb238e2e8a538a719d
üst
a213af34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
gtk3salnativewidgets-gtk.cxx
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+5
-15
No files found.
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
Dosyayı görüntüle @
563bfd69
...
...
@@ -972,24 +972,14 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
void
GtkSalGraphics
::
renderAreaToPix
(
cairo_surface_t
*
source
,
cairo_rectangle_int_t
*
region
)
{
if
(
!
mpFrame
->
m_aFrame
.
get
()
)
return
;
long
ax
=
region
->
x
;
long
ay
=
region
->
y
;
basegfx
::
B2IVector
size
=
mpFrame
->
m_aFrame
->
getSize
();
long
awidth
=
MIN
(
region
->
width
,
size
.
getX
()
-
ax
);
long
aheight
=
MIN
(
region
->
height
,
size
.
getY
()
-
ay
);
cairo_t
*
cr
=
getCairoContext
();
cairo_set_source_surface
(
cr
,
source
,
ax
,
ay
);
cairo_rectangle
(
cr
,
ax
,
ay
,
awidth
,
aheight
);
cairo_fill
(
cr
);
cairo_set_source_surface
(
cr
,
source
,
region
->
x
,
region
->
y
);
cairo_rectangle
(
cr
,
region
->
x
,
region
->
y
,
region
->
width
,
region
->
height
);
cairo_fill
(
cr
);
cairo_destroy
(
cr
);
if
(
!
mpFrame
->
isDuringRender
()
)
gtk_widget_queue_draw_area
(
mpFrame
->
getWindow
(),
ax
,
ay
,
awidth
,
aheight
);
if
(
!
mpFrame
->
isDuringRender
()
)
gtk_widget_queue_draw_area
(
mpFrame
->
getWindow
(),
region
->
x
,
region
->
y
,
region
->
width
,
region
->
height
);
}
bool
GtkSalGraphics
::
getNativeControlRegion
(
ControlType
nType
,
ControlPart
nPart
,
const
Rectangle
&
rControlRegion
,
ControlState
,
...
...
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