mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
VNC: Add an allocated (local) framebuffer
This commit is contained in:
@@ -90,7 +90,9 @@ struct vnc_session_s
|
|||||||
/* Display geometry and color characteristics */
|
/* Display geometry and color characteristics */
|
||||||
|
|
||||||
uint8_t colorfmt; /* See include/nuttx/fb.h */
|
uint8_t colorfmt; /* See include/nuttx/fb.h */
|
||||||
|
uint8_t bpp; /* Bits per pixel */
|
||||||
struct nxgl_size_s screen; /* Size of the screen in pixels x rows */
|
struct nxgl_size_s screen; /* Size of the screen in pixels x rows */
|
||||||
|
FAR uint8_t *fb; /* Allocated local frame buffer */
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -216,5 +216,12 @@ void vnc_release_session(FAR struct vnc_session_s *session)
|
|||||||
psock_close(&session->listen);
|
psock_close(&session->listen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Free the allocated framebuffer */
|
||||||
|
|
||||||
|
if (session->fb)
|
||||||
|
{
|
||||||
|
kmm_free(session->fb);
|
||||||
|
}
|
||||||
|
|
||||||
vnc_initialize_session(session);
|
vnc_initialize_session(session);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user