You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/07/04 10:28:43 UTC

[GitHub] [incubator-nuttx] adamkaliszan commented on a diff in pull request #6551: framebuffer for e-ink display. Added callback function to redraw.

adamkaliszan commented on code in PR #6551:
URL: https://github.com/apache/incubator-nuttx/pull/6551#discussion_r912864162


##########
drivers/lcd/lcd_framebuffer.c:
##########
@@ -220,34 +220,40 @@ static int lcdfb_updateearea(FAR struct fb_vtable_s *vtable,
       run += (startx * pinfo->bpp + 7) >> 3;
     }
 
-  /* Update the whole screen? */
-
-  if (startx == 0 && endx == priv->xres - 1 &&
-      starty == 0 && endy == priv->yres - 1)
+  if (pinfo->putarea != NULL)
     {
-      /* Yes, LCD driver support putarea callback? */
-
-      if (pinfo->putarea != NULL)
+      ret = pinfo->putarea(pinfo->dev, starty, endy, startx, endx, run);

Review Comment:
   OK it is ready.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org