w32_common: reset internal display size to the window size

vo->dwidth/dheight are overwritten by vo.c at this point (which is not
nice, but it's how things are currently).
This commit is contained in:
wm4 2013-03-19 23:36:43 +01:00
parent 594ad5acc2
commit e4be357bce
1 changed files with 5 additions and 0 deletions

View File

@ -542,6 +542,11 @@ int vo_w32_config(struct vo *vo, uint32_t width, uint32_t height,
w32->prev_width = vo->dwidth = width;
w32->prev_height = vo->dheight = height;
}
} else {
RECT r;
GetClientRect(w32->window, &r);
vo->dwidth = r.right;
vo->dheight = r.bottom;
}
vo->opts->fs = flags & VOFLAG_FULLSCREEN;