mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 18:12:22 +00:00
vp_rpi: fix indentation
This also moves the p->background check into the top if (the code effectively didn't do anything when this false).
This commit is contained in:
parent
8ffd2f1dd4
commit
dfa88271a2
@ -255,16 +255,15 @@ static int create_overlays(struct vo *vo)
|
||||
struct priv *p = vo->priv;
|
||||
destroy_overlays(vo);
|
||||
|
||||
if (vo->opts->fullscreen) {
|
||||
// Use the whole screen.
|
||||
VC_RECT_T dst = {.width = p->w, .height = p->h};
|
||||
VC_RECT_T src = {.width = 1 << 16, .height = 1 << 16};
|
||||
VC_DISPMANX_ALPHA_T alpha = {
|
||||
.flags = DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS,
|
||||
.opacity = 0xFF,
|
||||
};
|
||||
if (vo->opts->fullscreen && p->background) {
|
||||
// Use the whole screen.
|
||||
VC_RECT_T dst = {.width = p->w, .height = p->h};
|
||||
VC_RECT_T src = {.width = 1 << 16, .height = 1 << 16};
|
||||
VC_DISPMANX_ALPHA_T alpha = {
|
||||
.flags = DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS,
|
||||
.opacity = 0xFF,
|
||||
};
|
||||
|
||||
if (p->background) {
|
||||
p->window = vc_dispmanx_element_add(p->update, p->display,
|
||||
p->background_layer,
|
||||
&dst, 0, &src,
|
||||
@ -275,7 +274,6 @@ static int create_overlays(struct vo *vo)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (p->enable_osd) {
|
||||
VC_RECT_T dst = {.x = p->x, .y = p->y,
|
||||
|
Loading…
Reference in New Issue
Block a user