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
8e2eccb1
Kaydet (Commit)
8e2eccb1
authored
Ara 16, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Tab bar: multiply the size of the plus icon if HiDPI is detected
Change-Id: I6efaac9bd21ab986af77fed1a949d3d2b380e922
üst
39327e71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
tabbar.cxx
svtools/source/control/tabbar.cxx
+16
-7
No files found.
svtools/source/control/tabbar.cxx
Dosyayı görüntüle @
8e2eccb1
...
...
@@ -1191,16 +1191,25 @@ public:
void
drawPlusImage
()
{
SvtResId
id
(
BMP_LIST_ADD
);
Image
aPlusImg
(
id
);
SvtResId
aPlusImageId
(
BMP_LIST_ADD
);
Image
aPlusImage
(
aPlusImageId
);
sal_Int32
aScaleFactor
=
mrParent
.
GetDPIScaleFactor
();
if
(
aScaleFactor
>
1
)
{
BitmapEx
aBitmap
=
aPlusImage
.
GetBitmapEx
();
aBitmap
.
Scale
(
aScaleFactor
,
aScaleFactor
,
BMP_SCALE_FAST
);
aPlusImage
=
Image
(
aBitmap
);
}
// Center the image within the bounding rectangle.
Size
aSize
=
aPlusIm
g
.
GetSizePixel
();
Point
pt
=
maRect
.
TopLeft
();
Size
aSize
=
aPlusIm
age
.
GetSizePixel
();
Point
aPosition
=
maRect
.
TopLeft
();
long
nXOffSet
=
(
maRect
.
GetWidth
()
-
aSize
.
Width
())
/
2
;
long
nYOffset
=
(
maRect
.
GetHeight
()
-
aSize
.
Height
())
/
2
;
pt
+=
Point
(
nXOffSet
,
nYOffset
);
pt
.
X
()
+=
1
;
mrParent
.
DrawImage
(
pt
,
aPlusImg
);
aPosition
+=
Point
(
nXOffSet
,
nYOffset
);
aPosition
.
X
()
+=
1
;
mrParent
.
DrawImage
(
aPosition
,
aPlusImage
);
}
void
setRect
(
const
Rectangle
&
rRect
)
...
...
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