summaryrefslogtreecommitdiffstats
path: root/video/out/vo_rpi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-01 19:22:35 +0200
committerwm4 <wm4@nowhere>2015-05-01 19:22:35 +0200
commit94a3a76ee31bdc00255dc231e99be9f9ad6f38fa (patch)
tree6e683eb487f48e9b5dad953e342bfaa014ff91e4 /video/out/vo_rpi.c
parente185887ba0da9967337541ebd71e244fb2833c4f (diff)
downloadmpv-94a3a76ee31bdc00255dc231e99be9f9ad6f38fa.tar.bz2
mpv-94a3a76ee31bdc00255dc231e99be9f9ad6f38fa.tar.xz
vo_rpi: update renderer size on display size changes too
(Not sure why it worked without this when I tested the previous changes.) Untested, but should be fine. This is equivalent what is done on e.g. panscan changes.
Diffstat (limited to 'video/out/vo_rpi.c')
-rw-r--r--video/out/vo_rpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c
index 6e0e92e7fb..f144deb4b7 100644
--- a/video/out/vo_rpi.c
+++ b/video/out/vo_rpi.c
@@ -533,6 +533,8 @@ static int control(struct vo *vo, uint32_t request, void *data)
if (atomic_load(&p->update_display)) {
atomic_store(&p->update_display, false);
update_display_size(vo);
+ if (p->renderer_enabled)
+ resize(vo);
}
return VO_TRUE;
}