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
9c08a06f
Kaydet (Commit)
9c08a06f
authored
May 14, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix Button when using double-buffered rendering
Change-Id: Ib2812723141c5dfe39b30c95f12d1aeca9c367bd
üst
85b7494e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
button.cxx
vcl/source/control/button.cxx
+6
-6
No files found.
vcl/source/control/button.cxx
Dosyayı görüntüle @
9c08a06f
...
...
@@ -951,9 +951,9 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext, bool bLa
break
;
}
bool
bDropDown
=
(
IsSymbol
()
&&
(
GetSymbol
()
==
SymbolType
::
SPIN_DOWN
)
&&
GetText
().
isEmpty
()
);
bool
bDropDown
=
(
IsSymbol
()
&&
(
GetSymbol
()
==
SymbolType
::
SPIN_DOWN
)
&&
GetText
().
isEmpty
()
);
if
(
bDropDown
&&
(
aCtrlType
==
CTRL_COMBOBOX
||
aCtrlType
==
CTRL_LISTBOX
)
)
if
(
bDropDown
&&
(
aCtrlType
==
CTRL_COMBOBOX
||
aCtrlType
==
CTRL_LISTBOX
)
)
{
if
(
GetParent
()
->
IsNativeControlSupported
(
aCtrlType
,
PART_ENTIRE_CONTROL
))
{
...
...
@@ -1007,7 +1007,7 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext, bool bLa
if
(
!
bRollOver
&&
!
HasFocus
())
bDrawMenuSep
=
false
;
}
if
((
bNativeOK
=
IsNativeControlSupported
(
CTRL_PUSHBUTTON
,
PART_ENTIRE_CONTROL
)))
if
((
bNativeOK
=
rRenderContext
.
IsNativeControlSupported
(
CTRL_PUSHBUTTON
,
PART_ENTIRE_CONTROL
)))
{
PushButtonValue
aControlValue
;
Rectangle
aCtrlRegion
(
aInRect
);
...
...
@@ -1045,8 +1045,8 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext, bool bLa
// prepare single line hint (needed on mac to decide between normal push button and
// rectangular bevel button look)
Size
aFontSize
(
Application
::
GetSettings
().
GetStyleSettings
().
GetPushButtonFont
().
GetSize
());
aFontSize
=
LogicToPixel
(
aFontSize
,
MapMode
(
MAP_POINT
));
Size
aInRectSize
(
LogicToPixel
(
Size
(
aInRect
.
GetWidth
(),
aInRect
.
GetHeight
())));
aFontSize
=
rRenderContext
.
LogicToPixel
(
aFontSize
,
MapMode
(
MAP_POINT
));
Size
aInRectSize
(
rRenderContext
.
LogicToPixel
(
Size
(
aInRect
.
GetWidth
(),
aInRect
.
GetHeight
())));
aControlValue
.
mbSingleLine
=
(
aInRectSize
.
Height
()
<
2
*
aFontSize
.
Height
());
if
(((
nState
&
ControlState
::
ROLLOVER
))
||
!
(
GetStyle
()
&
WB_FLATBUTTON
))
...
...
@@ -1060,7 +1060,7 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext, bool bLa
}
// draw content using the same aInRect as non-native VCL would do
ImplDrawPushButtonContent
(
this
,
(
nState
&
ControlState
::
ROLLOVER
)
?
WINDOW_DRAW_ROLLOVER
:
0
,
ImplDrawPushButtonContent
(
&
rRenderContext
,
(
nState
&
ControlState
::
ROLLOVER
)
?
WINDOW_DRAW_ROLLOVER
:
0
,
aInRect
,
bLayout
,
bDrawMenuSep
);
if
(
HasFocus
())
...
...
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