File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ static void _twin_fbdev_put_span(twin_coord_t left,
56
56
return ;
57
57
58
58
twin_coord_t width = right - left ;
59
- off_t off = top * screen -> width + left ;
59
+ off_t off = top * tx -> fb_var . xres_virtual + left ;
60
60
uint32_t * dest =
61
61
(uint32_t * ) ((uintptr_t ) tx -> fb_base + (off * sizeof (uint32_t )));
62
62
memcpy (dest , pixels , width * sizeof (uint32_t ));
@@ -82,9 +82,13 @@ static void twin_fbdev_damage(twin_screen_t *screen, twin_fbdev_t *tx)
82
82
static bool twin_fbdev_work (void * closure )
83
83
{
84
84
twin_screen_t * screen = SCREEN (closure );
85
+ twin_fbdev_t * tx = PRIV (closure );
85
86
86
- if (twin_screen_damaged (screen ))
87
+ if (twin_screen_damaged (screen )) {
87
88
twin_screen_update (screen );
89
+ ioctl (tx -> fb_fd , FBIOPAN_DISPLAY , & tx -> fb_var );
90
+ }
91
+
88
92
return true;
89
93
}
90
94
You can’t perform that action at this time.
0 commit comments