summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/src/cbgwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cbgwindow.cxx')
-rw-r--r--NxWidgets/libnxwidgets/src/cbgwindow.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/NxWidgets/libnxwidgets/src/cbgwindow.cxx b/NxWidgets/libnxwidgets/src/cbgwindow.cxx
index 58ecc1f51..268bc5d80 100644
--- a/NxWidgets/libnxwidgets/src/cbgwindow.cxx
+++ b/NxWidgets/libnxwidgets/src/cbgwindow.cxx
@@ -101,7 +101,8 @@ bool CBgWindow::open(void)
// Request the background the window
- int ret = nx_requestbkgd(m_hNxServer, vtable, (FAR void *)m_widgetControl);
+ int ret = nx_requestbkgd(m_hNxServer, vtable,
+ (FAR void *)static_cast<CCallback*>(this));
if (ret < 0)
{
return false;