Deny to switch into banked video mode when it is not available. Some
users has reported corrupted display with old video cards. Submitted by: Michal Mertl <mime traveller cz>
This commit is contained in:
parent
36c0fd9d0f
commit
b147cf1db2
@ -389,7 +389,8 @@ sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize,
|
||||
if (info.vi_width * info.vi_height / 8 > info.vi_window_size)
|
||||
return ENODEV;
|
||||
} else if (info.vi_mem_model == V_INFO_MM_DIRECT) {
|
||||
if ((info.vi_depth != 15) && (info.vi_depth != 16) &&
|
||||
if (!(info.vi_flags & V_INFO_LINEAR) &&
|
||||
(info.vi_depth != 15) && (info.vi_depth != 16) &&
|
||||
(info.vi_depth != 24) && (info.vi_depth != 32))
|
||||
return ENODEV;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user