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
e36b5415
Kaydet (Commit)
e36b5415
authored
May 18, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't check for pWin when drawing the Scrollbar
Change-Id: I3e9c55b99d9eb40e69edfd19a0b481139a7df519
üst
29ea595d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
scrbar.cxx
vcl/source/control/scrbar.cxx
+10
-10
No files found.
vcl/source/control/scrbar.cxx
Dosyayı görüntüle @
e36b5415
...
@@ -640,18 +640,18 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
...
@@ -640,18 +640,18 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
if
(
mbCalcSize
)
if
(
mbCalcSize
)
ImplCalc
(
false
);
ImplCalc
(
false
);
vcl
::
Window
*
pWin
=
NULL
;
//
vcl::Window *pWin = NULL;
if
(
rRenderContext
.
GetOutDevType
()
==
OUTDEV_WINDOW
)
//
if (rRenderContext.GetOutDevType() == OUTDEV_WINDOW)
pWin
=
static_cast
<
vcl
::
Window
*>
(
&
rRenderContext
);
//
pWin = static_cast<vcl::Window*>(&rRenderContext);
// Draw the entire control if the native theme engine needs it
// Draw the entire control if the native theme engine needs it
if
(
nDrawFlags
&&
pWin
&&
rRenderContext
.
IsNativeControlSupported
(
CTRL_SCROLLBAR
,
PART_DRAW_BACKGROUND_HORZ
))
if
(
nDrawFlags
&&
rRenderContext
.
IsNativeControlSupported
(
CTRL_SCROLLBAR
,
PART_DRAW_BACKGROUND_HORZ
))
{
{
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_BACKGROUND
);
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_BACKGROUND
);
return
;
return
;
}
}
if
((
nDrawFlags
&
SCRBAR_DRAW_BTN1
)
&&
(
!
pWin
||
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_BTN1
)))
if
((
nDrawFlags
&
SCRBAR_DRAW_BTN1
)
&&
(
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_BTN1
)))
{
{
nStyle
=
DrawButtonFlags
::
NoLightBorder
;
nStyle
=
DrawButtonFlags
::
NoLightBorder
;
if
(
mnStateFlags
&
SCRBAR_STATE_BTN1_DOWN
)
if
(
mnStateFlags
&
SCRBAR_STATE_BTN1_DOWN
)
...
@@ -678,7 +678,7 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
...
@@ -678,7 +678,7 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
aDecoView
.
DrawSymbol
(
aTempRect
,
eSymbolType
,
rStyleSettings
.
GetButtonTextColor
(),
nSymbolStyle
);
aDecoView
.
DrawSymbol
(
aTempRect
,
eSymbolType
,
rStyleSettings
.
GetButtonTextColor
(),
nSymbolStyle
);
}
}
if
((
nDrawFlags
&
SCRBAR_DRAW_BTN2
)
&&
(
!
pWin
||
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_BTN2
)))
if
((
nDrawFlags
&
SCRBAR_DRAW_BTN2
)
&&
(
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_BTN2
)))
{
{
nStyle
=
DrawButtonFlags
::
NoLightBorder
;
nStyle
=
DrawButtonFlags
::
NoLightBorder
;
if
(
mnStateFlags
&
SCRBAR_STATE_BTN2_DOWN
)
if
(
mnStateFlags
&
SCRBAR_STATE_BTN2_DOWN
)
...
@@ -707,7 +707,7 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
...
@@ -707,7 +707,7 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
rRenderContext
.
SetLineColor
();
rRenderContext
.
SetLineColor
();
if
((
nDrawFlags
&
SCRBAR_DRAW_THUMB
)
&&
(
!
pWin
||
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_THUMB
)))
if
((
nDrawFlags
&
SCRBAR_DRAW_THUMB
)
&&
(
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_THUMB
)))
{
{
if
(
!
maThumbRect
.
IsEmpty
())
if
(
!
maThumbRect
.
IsEmpty
())
{
{
...
@@ -724,7 +724,7 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
...
@@ -724,7 +724,7 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
}
}
}
}
if
((
nDrawFlags
&
SCRBAR_DRAW_PAGE1
)
&&
(
!
pWin
||
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_PAGE1
)))
if
((
nDrawFlags
&
SCRBAR_DRAW_PAGE1
)
&&
(
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_PAGE1
)))
{
{
if
(
mnStateFlags
&
SCRBAR_STATE_PAGE1_DOWN
)
if
(
mnStateFlags
&
SCRBAR_STATE_PAGE1_DOWN
)
rRenderContext
.
SetFillColor
(
rStyleSettings
.
GetShadowColor
());
rRenderContext
.
SetFillColor
(
rStyleSettings
.
GetShadowColor
());
...
@@ -732,7 +732,7 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
...
@@ -732,7 +732,7 @@ void ScrollBar::ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFla
rRenderContext
.
SetFillColor
(
rStyleSettings
.
GetCheckedColor
());
rRenderContext
.
SetFillColor
(
rStyleSettings
.
GetCheckedColor
());
rRenderContext
.
DrawRect
(
maPage1Rect
);
rRenderContext
.
DrawRect
(
maPage1Rect
);
}
}
if
((
nDrawFlags
&
SCRBAR_DRAW_PAGE2
)
&&
(
!
pWin
||
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_PAGE2
)))
if
((
nDrawFlags
&
SCRBAR_DRAW_PAGE2
)
&&
(
!
ImplDrawNative
(
rRenderContext
,
SCRBAR_DRAW_PAGE2
)))
{
{
if
(
mnStateFlags
&
SCRBAR_STATE_PAGE2_DOWN
)
if
(
mnStateFlags
&
SCRBAR_STATE_PAGE2_DOWN
)
rRenderContext
.
SetFillColor
(
rStyleSettings
.
GetShadowColor
());
rRenderContext
.
SetFillColor
(
rStyleSettings
.
GetShadowColor
());
...
@@ -1121,7 +1121,7 @@ void ScrollBar::KeyInput( const KeyEvent& rKEvt )
...
@@ -1121,7 +1121,7 @@ void ScrollBar::KeyInput( const KeyEvent& rKEvt )
Control
::
KeyInput
(
rKEvt
);
Control
::
KeyInput
(
rKEvt
);
}
}
void
ScrollBar
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
void
ScrollBar
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
{
{
ImplDraw
(
rRenderContext
,
SCRBAR_DRAW_ALL
);
ImplDraw
(
rRenderContext
,
SCRBAR_DRAW_ALL
);
}
}
...
...
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