graphics: nx_openwindow() and nxtk_openwindow() now accept an addtional 'flag' parameter. This argument is not used at present but will, eventually enable a RAM backed, per-window framebuffer.
This commit is contained in:
parent
520bd6ad44
commit
d33ce2c3ae
@ -220,7 +220,7 @@ static inline NXEGWINDOW nxeg_openwindow(FAR const struct nx_callback_s *cb,
|
|||||||
{
|
{
|
||||||
NXEGWINDOW hwnd;
|
NXEGWINDOW hwnd;
|
||||||
|
|
||||||
hwnd = nx_openwindow(g_hnx, cb, (FAR void *)state);
|
hwnd = nx_openwindow(g_hnx, 0, cb, (FAR void *)state);
|
||||||
if (!hwnd)
|
if (!hwnd)
|
||||||
{
|
{
|
||||||
printf("nxeg_openwindow: nx_openwindow failed: %d\n", errno);
|
printf("nxeg_openwindow: nx_openwindow failed: %d\n", errno);
|
||||||
@ -234,7 +234,7 @@ static inline NXEGWINDOW nxeg_openwindow(FAR const struct nx_callback_s *cb,
|
|||||||
{
|
{
|
||||||
NXEGWINDOW hwnd;
|
NXEGWINDOW hwnd;
|
||||||
|
|
||||||
hwnd = nxtk_openwindow(g_hnx, cb, (FAR void *)state);
|
hwnd = nxtk_openwindow(g_hnx, 0, cb, (FAR void *)state);
|
||||||
if (!hwnd)
|
if (!hwnd)
|
||||||
{
|
{
|
||||||
printf("nxeg_openwindow: nxtk_openwindow failed: %d\n", errno);
|
printf("nxeg_openwindow: nxtk_openwindow failed: %d\n", errno);
|
||||||
|
@ -294,7 +294,7 @@ int nxterm_main(int argc, char **argv)
|
|||||||
/* Create a window */
|
/* Create a window */
|
||||||
|
|
||||||
printf("nxterm_main: Create window\n");
|
printf("nxterm_main: Create window\n");
|
||||||
g_nxterm_vars.hwnd = nxtk_openwindow(g_nxterm_vars.hnx, &g_nxtermcb,
|
g_nxterm_vars.hwnd = nxtk_openwindow(g_nxterm_vars.hnx, 0, &g_nxtermcb,
|
||||||
NULL);
|
NULL);
|
||||||
if (!g_nxterm_vars.hwnd)
|
if (!g_nxterm_vars.hwnd)
|
||||||
{
|
{
|
||||||
|
@ -344,7 +344,7 @@ NXWINDOW nxpu_open(void)
|
|||||||
printf("nxpu_open: Create pop-up\n");
|
printf("nxpu_open: Create pop-up\n");
|
||||||
nxpu_initstate();
|
nxpu_initstate();
|
||||||
|
|
||||||
hwnd = nx_openwindow(g_hnx, &g_pucb, (FAR void *)&g_pustate);
|
hwnd = nx_openwindow(g_hnx, 0, &g_pucb, (FAR void *)&g_pustate);
|
||||||
ginfo("hwnd=%p\n", hwnd);
|
ginfo("hwnd=%p\n", hwnd);
|
||||||
|
|
||||||
if (!hwnd)
|
if (!hwnd)
|
||||||
|
@ -120,7 +120,7 @@ bool CNxTkWindow::open(void)
|
|||||||
|
|
||||||
// Create the window
|
// Create the window
|
||||||
|
|
||||||
m_hNxTkWindow = nxtk_openwindow(m_hNxServer, vtable,
|
m_hNxTkWindow = nxtk_openwindow(m_hNxServer, 0, vtable,
|
||||||
(FAR void *)static_cast<CCallback*>(this));
|
(FAR void *)static_cast<CCallback*>(this));
|
||||||
return m_hNxTkWindow != NULL;
|
return m_hNxTkWindow != NULL;
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ bool CNxWindow::open(void)
|
|||||||
|
|
||||||
// Create the window
|
// Create the window
|
||||||
|
|
||||||
m_hNxWindow = nx_openwindow(m_hNxServer, vtable,
|
m_hNxWindow = nx_openwindow(m_hNxServer, 0, vtable,
|
||||||
(FAR void *)static_cast<CCallback*>(this));
|
(FAR void *)static_cast<CCallback*>(this));
|
||||||
return m_hNxWindow != NULL;
|
return m_hNxWindow != NULL;
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ int save_screenshot(FAR const char *filename)
|
|||||||
|
|
||||||
/* Open invisible dummy window for communication */
|
/* Open invisible dummy window for communication */
|
||||||
|
|
||||||
window = nx_openwindow(server, &cb, NULL);
|
window = nx_openwindow(server, 0, &cb, NULL);
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
perror("nx_openwindow");
|
perror("nx_openwindow");
|
||||||
|
Loading…
Reference in New Issue
Block a user