GPU Stack, V8086 Monitor & BGA Driver #50
@@ -300,12 +300,12 @@ begin
|
|||||||
addInfoRow(content, cw, 'CPU Clock', clk_str);
|
addInfoRow(content, cw, 'CPU Clock', clk_str);
|
||||||
mem_str := stringConcat(intToString(((multibootinfo^.mem_upper + 1000) div 1024) + 1), ' MB');
|
mem_str := stringConcat(intToString(((multibootinfo^.mem_upper + 1000) div 1024) + 1), ' MB');
|
||||||
addInfoRow(content, cw, 'Memory', mem_str);
|
addInfoRow(content, cw, 'Memory', mem_str);
|
||||||
res_str := stringConcat(intToString(multibootinfo^.framebuffer_width), 'x');
|
res_str := stringConcat(intToString(video.frontBufferWidth), 'x');
|
||||||
res_str := stringConcat(res_str, intToString(multibootinfo^.framebuffer_height));
|
res_str := stringConcat(res_str, intToString(video.frontBufferHeight));
|
||||||
res_str := stringConcat(res_str, 'x');
|
res_str := stringConcat(res_str, 'x');
|
||||||
res_str := stringConcat(res_str, intToString(multibootinfo^.framebuffer_bpp));
|
res_str := stringConcat(res_str, intToString(video.frontBufferBpp));
|
||||||
addInfoRow(content, cw, 'Resolution', res_str);
|
addInfoRow(content, cw, 'Resolution', res_str);
|
||||||
addInfoRow(content, cw, 'Graphics', 'VESA VBE');
|
addInfoRow(content, cw, 'Graphics', gpu.activeDriverName);
|
||||||
|
|
||||||
addSeparator(content, cw);
|
addSeparator(content, cw);
|
||||||
|
|
||||||
|
|||||||
@@ -138,6 +138,9 @@ begin
|
|||||||
for i := 0 to DriverCount - 1 do begin
|
for i := 0 to DriverCount - 1 do begin
|
||||||
if strings.stringEquals(Drivers[i].Name, name) then begin
|
if strings.stringEquals(Drivers[i].Name, name) then begin
|
||||||
Drivers[i].Available := true;
|
Drivers[i].Available := true;
|
||||||
|
{ If no driver is active yet, default to this one }
|
||||||
|
if ActiveName = nil then
|
||||||
|
ActiveName := name;
|
||||||
syslog.log('GPU', 'Driver now available: ');
|
syslog.log('GPU', 'Driver now available: ');
|
||||||
syslog.writestringln(name);
|
syslog.writestringln(name);
|
||||||
pop_trace;
|
pop_trace;
|
||||||
|
|||||||
Reference in New Issue
Block a user