Forgot to uncomment this line: the "depth" argument of the vesa file is now also
evaluated, so that you can specify something different than 8 bit in there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12840 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
028aae6c9c
commit
8cd812c172
@ -75,7 +75,7 @@ vga_enable_bright_background_colors(void)
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark -
|
||||
// #pragma mark - vesa
|
||||
// VESA functions
|
||||
|
||||
|
||||
@ -379,12 +379,12 @@ get_mode_from_settings(void)
|
||||
|
||||
for (int32 i = 0; i < settings->parameter_count; i++) {
|
||||
driver_parameter ¶meter = settings->parameters[i];
|
||||
|
||||
|
||||
if (!strcmp(parameter.name, "mode") && parameter.value_count > 2) {
|
||||
// parameter found, now get its values
|
||||
int32 width = strtol(parameter.values[0], NULL, 0);
|
||||
int32 height = strtol(parameter.values[1], NULL, 0);
|
||||
int32 depth = 8; //strtol(parameter->values[2], NULL, 0);
|
||||
int32 depth = strtol(parameter.values[2], NULL, 0);
|
||||
|
||||
// search mode that fits
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user