1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-26 13:52:21 +00:00

[stage2] Add console_get_framebuffer

This commit is contained in:
TuxSH 2018-05-12 21:39:29 +02:00
parent 9dce3b05ba
commit 396a646fa3
2 changed files with 9 additions and 0 deletions

View file

@ -155,6 +155,14 @@ int console_init(void) {
return 0;
}
void *console_get_framebuffer(bool enable_display) {
if (g_framebuffer != NULL && enable_display) {
console_init_display();
}
return g_framebuffer;
}
int console_display(const void *framebuffer) {
if (!g_display_initialized) {
console_init_display();

View file

@ -2,6 +2,7 @@
#define FUSEE_CONSOLE_H
int console_init(void);
void *console_get_framebuffer(bool enable_display);
int console_display(const void *framebuffer); /* Must be page-aligned */
int console_resume(void);
int console_end(void);