Commit 39643619 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

MSW/GDI: simplify pool creation

parent 647f5417
......@@ -290,13 +290,9 @@ static int Init(vout_display_t *vd,
rsc.p[0].i_pitch = i_pic_pitch;;
picture_t *picture = picture_NewFromResource(fmt, &rsc);
if (picture) {
picture_pool_configuration_t cfg;
memset(&cfg, 0, sizeof(cfg));
cfg.picture_count = 1;
cfg.picture = &picture;
sys->pool = picture_pool_NewExtended(&cfg);
} else
if (picture != NULL)
sys->pool = picture_pool_New(1, &picture);
else
sys->pool = NULL;
UpdateRects(vd, NULL, NULL, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment