diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-19 11:29:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-19 15:13:30 +0000 |
commit | 8211548e7d76fe1b6e022f3db7301bb63aaa66ec (patch) | |
tree | 0de94d07f028ed46a7e220d5ba3aa68eda01822b /chart2 | |
parent | b6dcda29bc1b06d92813d7cee9a8dd2771fca145 (diff) |
svx: load BitmapEx resources instead of Image ones
Change-Id: Id23523170f757361f3fc3d8a18b6db827f45d109
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx index 3151d6c0acc0..a8778965b56f 100644 --- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx +++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx @@ -42,7 +42,7 @@ LightButton::LightButton( vcl::Window* pParent) : ImageButton( pParent) , m_bLightOn(false) { - SetModeImage( Image( SVX_RES(RID_SVXIMAGE_LIGHT_OFF) ) ); + SetModeImage(Image(BitmapEx(SVX_RES(RID_SVXBMP_LAMP_OFF)))); } VCL_BUILDER_FACTORY(LightButton) @@ -54,11 +54,11 @@ void LightButton::switchLightOn(bool bOn) m_bLightOn = bOn; if(m_bLightOn) { - SetModeImage( Image( SVX_RES(RID_SVXIMAGE_LIGHT_ON) ) ); + SetModeImage(Image(BitmapEx(SVX_RES(RID_SVXBMP_LAMP_ON)))); } else { - SetModeImage( Image( SVX_RES(RID_SVXIMAGE_LIGHT_OFF) ) ); + SetModeImage(Image(BitmapEx(SVX_RES(RID_SVXBMP_LAMP_OFF)))); } } @@ -97,9 +97,9 @@ void LightSourceInfo::initButtonFromSource() { if(!pButton) return; - pButton->SetModeImage( Image( SVX_RES( - aLightSource.bIsEnabled ? RID_SVXIMAGE_LIGHT_ON : RID_SVXIMAGE_LIGHT_OFF - ) ) ); + pButton->SetModeImage(Image(BitmapEx(SVX_RES( + aLightSource.bIsEnabled ? RID_SVXBMP_LAMP_ON : RID_SVXBMP_LAMP_OFF + ) ) )); } namespace |