Try to open the frame buffer every time we set graphics mode

It may fail initially and work later
This commit is contained in:
Ray Strode 2008-06-11 16:44:18 -04:00
parent 5123832d46
commit 5a85be71ea

View file

@ -373,7 +373,8 @@ ply_window_set_mode (ply_window_t *window,
break;
case PLY_WINDOW_MODE_GRAPHICS:
if (!ply_frame_buffer_device_is_open (window->frame_buffer))
if (!ply_frame_buffer_device_is_open (window->frame_buffer)
&& !ply_frame_buffer_open (window->frame_buffer))
return false;
if (ioctl (window->tty_fd, KDSETMODE,