Revert "subsys/fb/cfb: Introduce cfb_framebuffer_invert function"
This reverts commit b6528469df
.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f8625ced84
commit
64aecd044f
2 changed files with 0 additions and 23 deletions
|
@ -100,15 +100,6 @@ int cfb_print(struct device *dev, char *str, u16_t x, u16_t y);
|
|||
*/
|
||||
int cfb_framebuffer_clear(struct device *dev, bool clear_display);
|
||||
|
||||
/**
|
||||
* @brief Invert Pixels.
|
||||
*
|
||||
* @param dev Pointer to device structure for driver instance
|
||||
*
|
||||
* @return 0 on success, negative value otherwise
|
||||
*/
|
||||
int cfb_framebuffer_invert(struct device *dev);
|
||||
|
||||
/**
|
||||
* @brief Finalize framebuffer and write it to display RAM,
|
||||
* invert or reorder pixels if necessary.
|
||||
|
|
|
@ -185,20 +185,6 @@ int cfb_framebuffer_clear(struct device *dev, bool clear_display)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int cfb_framebuffer_invert(struct device *dev)
|
||||
{
|
||||
struct char_framebuffer *fb = &char_fb;
|
||||
|
||||
if (!fb || !fb->buf) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
fb->inverted = !fb->inverted;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int cfb_framebuffer_finalize(struct device *dev)
|
||||
{
|
||||
const struct display_driver_api *api = dev->driver_api;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue