summaryrefslogtreecommitdiff
path: root/cui/source/options/optopencl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/optopencl.cxx')
-rw-r--r--cui/source/options/optopencl.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index ec8f432816eb..cbe37dd6ed54 100644
--- a/cui/source/options/optopencl.cxx
+++ b/cui/source/options/optopencl.cxx
@@ -47,20 +47,17 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
{
get(mpUseSwInterpreter, "useswinterpreter");
get(mpUseOpenCL, "useopencl");
- get(clUsed,"openclused");
+ get(mpOclUsed,"openclused");
+ get(mpOclNotUsed,"openclnotused");
mpUseSwInterpreter->Check(officecfg::Office::Common::Misc::UseSwInterpreter::get());
mpUseOpenCL->Check(maConfig.mbUseOpenCL);
mpUseOpenCL->SetClickHdl(LINK(this, SvxOpenCLTabPage, EnableOpenCLHdl));
- cl_device_id idTest=opencl::gpuEnv.mpDevID;
- if(!idTest)
- {
- clUsed->SetText("Yes");
- }else{
- clUsed->SetText("No");
- }
+ bool bCLUsed = opencl::GPUEnv::isOpenCLEnabled();
+ mpOclUsed->Show(bCLUsed);
+ mpOclNotUsed->Show(!bCLUsed);
}
SvxOpenCLTabPage::~SvxOpenCLTabPage()