Use proper type of tag in bcm2835_mbox_fb_init
bcm2835_mbox_fb_init sets configuration so SET_VIRTUAL_OFFSET should be used instead of GET_VIRTUAL_OFFSET Submitted by: Sylvain Garrigues <sylvain@sylvaingarrigues.com>
This commit is contained in:
parent
fed2c48af4
commit
658b482e0d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298428
@ -501,7 +501,7 @@ bcm2835_mbox_fb_init(struct bcm2835_fb_config *fb)
|
||||
BCM2835_MBOX_INIT_TAG(&msg.virtual_w_h, SET_VIRTUAL_W_H);
|
||||
msg.virtual_w_h.body.req.width = fb->vxres;
|
||||
msg.virtual_w_h.body.req.height = fb->vyres;
|
||||
BCM2835_MBOX_INIT_TAG(&msg.offset, GET_VIRTUAL_OFFSET);
|
||||
BCM2835_MBOX_INIT_TAG(&msg.offset, SET_VIRTUAL_OFFSET);
|
||||
msg.offset.body.req.x = fb->xoffset;
|
||||
msg.offset.body.req.y = fb->yoffset;
|
||||
BCM2835_MBOX_INIT_TAG(&msg.depth, SET_DEPTH);
|
||||
|
Loading…
Reference in New Issue
Block a user