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
9827eaea
Kaydet (Commit)
9827eaea
authored
Tem 14, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
force a specific DPI with SAL_FORCEDPI (GTK2 & GTK3 backends only)
Change-Id: I2c154e4df060ade36744c6aa2fbffa8c6e665629
üst
2a19bb85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
salgdi.cxx
vcl/unx/generic/gdi/salgdi.cxx
+8
-0
gtk3salnativewidgets-gtk.cxx
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+8
-0
No files found.
vcl/unx/generic/gdi/salgdi.cxx
Dosyayı görüntüle @
9827eaea
...
@@ -278,6 +278,14 @@ bool X11SalGraphics::GetDitherPixmap( SalColor nSalColor )
...
@@ -278,6 +278,14 @@ bool X11SalGraphics::GetDitherPixmap( SalColor nSalColor )
void
X11SalGraphics
::
GetResolution
(
sal_Int32
&
rDPIX
,
sal_Int32
&
rDPIY
)
// const
void
X11SalGraphics
::
GetResolution
(
sal_Int32
&
rDPIX
,
sal_Int32
&
rDPIY
)
// const
{
{
char
*
pForceDpi
;
if
((
pForceDpi
=
getenv
(
"SAL_FORCEDPI"
)))
{
OString
sForceDPI
(
pForceDpi
);
rDPIX
=
rDPIY
=
sForceDPI
.
toInt32
();
return
;
}
const
SalDisplay
*
pDisplay
=
GetDisplay
();
const
SalDisplay
*
pDisplay
=
GetDisplay
();
if
(
!
pDisplay
)
if
(
!
pDisplay
)
{
{
...
...
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
Dosyayı görüntüle @
9827eaea
...
@@ -2102,6 +2102,14 @@ cairo_t* GtkSalGraphics::getCairoContext() const
...
@@ -2102,6 +2102,14 @@ cairo_t* GtkSalGraphics::getCairoContext() const
void
GtkSalGraphics
::
GetResolution
(
sal_Int32
&
rDPIX
,
sal_Int32
&
rDPIY
)
void
GtkSalGraphics
::
GetResolution
(
sal_Int32
&
rDPIX
,
sal_Int32
&
rDPIY
)
{
{
char
*
pForceDpi
;
if
((
pForceDpi
=
getenv
(
"SAL_FORCEDPI"
)))
{
OString
sForceDPI
(
pForceDpi
);
rDPIX
=
rDPIY
=
sForceDPI
.
toInt32
();
return
;
}
GdkScreen
*
pScreen
=
gtk_widget_get_screen
(
mpWindow
);
GdkScreen
*
pScreen
=
gtk_widget_get_screen
(
mpWindow
);
double
fResolution
=
-
1.0
;
double
fResolution
=
-
1.0
;
g_object_get
(
pScreen
,
"resolution"
,
&
fResolution
,
nullptr
);
g_object_get
(
pScreen
,
"resolution"
,
&
fResolution
,
nullptr
);
...
...
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