mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
mode check at preinit()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7676 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
49a5513a5e
commit
e670753447
@ -93,7 +93,12 @@ static uint32_t preinit(const char *arg)
|
||||
maxframes=1;
|
||||
}
|
||||
|
||||
printf("vo_svga: preinit - maxframes=%i\n",maxframes);
|
||||
if (!checked) {
|
||||
if (checksupportedmodes()) // Looking for available video modes
|
||||
return(1);
|
||||
}
|
||||
|
||||
// printf("vo_svga: preinit - maxframes=%i\n",maxframes);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -119,11 +124,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||
uint16_t buf_w = USHRT_MAX, buf_h = USHRT_MAX;
|
||||
vga_modelist_t *list = modelist;
|
||||
|
||||
if (!checked) {
|
||||
if (checksupportedmodes()) // Looking for available video modes
|
||||
return(1);
|
||||
}
|
||||
|
||||
bpp_avail = 0;
|
||||
while (list != NULL) {
|
||||
if ((list->modeinfo.width >= req_w) && (list->modeinfo.height >= req_h)) {
|
||||
|
Loading…
Reference in New Issue
Block a user