Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: lib/gfxconsole/gfxconsole.c

Issue 1777783003: [display] Refactor to avoid implicit framebuffer allocation. (Closed) Base URL: https://github.com/littlekernel/lk.git@master
Patch Set: fix stride confusion Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/gfx/gfx.c ('k') | lib/text/text.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/gfxconsole/gfxconsole.c
diff --git a/lib/gfxconsole/gfxconsole.c b/lib/gfxconsole/gfxconsole.c
index eb208c537207f6101ff9016d4ea34b3fdf3048a3..f874f6500a9f309d78ebdc1eba84cfde8ca7605d 100644
--- a/lib/gfxconsole/gfxconsole.c
+++ b/lib/gfxconsole/gfxconsole.c
@@ -164,11 +164,11 @@ void gfxconsole_start_on_display(void)
return;
/* pop up the console */
- struct display_info info;
- if (display_get_info(&info) < 0)
+ struct display_framebuffer fb;
+ if (display_get_framebuffer(&fb) < 0)
return;
- gfx_surface *s = gfx_create_surface_from_display(&info);
+ gfx_surface *s = gfx_create_surface_from_display(&fb);
gfxconsole_start(s);
started = true;
}
« no previous file with comments | « lib/gfx/gfx.c ('k') | lib/text/text.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698