mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 20:28:03 +02:00
compositor-fbdev: Remove bizarre division by sizeof
Really not sure why this was even here - it worked because we were dividing by 1. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
3f32a13acd
commit
617933840b
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ fbdev_query_screen_info(struct fbdev_output *output, int fd,
|
|||
|
||||
info->buffer_length = fixinfo.smem_len;
|
||||
info->line_length = fixinfo.line_length;
|
||||
strncpy(info->id, fixinfo.id, sizeof(info->id) / sizeof(*info->id));
|
||||
strncpy(info->id, fixinfo.id, sizeof(info->id));
|
||||
|
||||
info->pixel_format = calculate_pixman_format(&varinfo, &fixinfo);
|
||||
info->refresh_rate = calculate_refresh_rate(&varinfo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue