[Teton] Get framebuffer info from yellowstone.
This commit is contained in:
parent
0ced0032ff
commit
84d3caaba5
|
@ -1,11 +1,19 @@
|
||||||
#include <mammoth/debug.h>
|
#include <mammoth/debug.h>
|
||||||
#include <mammoth/init.h>
|
#include <mammoth/init.h>
|
||||||
|
#include <yellowstone/yellowstone.yunq.client.h>
|
||||||
|
|
||||||
uint64_t main(uint64_t init_port) {
|
uint64_t main(uint64_t init_port) {
|
||||||
ParseInitPort(init_port);
|
ParseInitPort(init_port);
|
||||||
|
|
||||||
dbgln("Teton Starting");
|
dbgln("Teton Starting");
|
||||||
|
|
||||||
// 1. Set up framebuffer.
|
// 1. Set up framebuffer.
|
||||||
|
YellowstoneClient client(gInitEndpointCap);
|
||||||
|
|
||||||
|
FramebufferInfo framebuffer;
|
||||||
|
RET_ERR(client.GetFramebufferInfo({}, framebuffer));
|
||||||
|
dbgln("FB addr {x}, width {} , height {}", framebuffer.address_phys(),
|
||||||
|
framebuffer.width(), framebuffer.height());
|
||||||
|
|
||||||
// 2. Parse a font file.
|
// 2. Parse a font file.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue