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

Unified Diff: lib/text/text.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/gfxconsole/gfxconsole.c ('k') | platform/armemu/display.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/text/text.c
diff --git a/lib/text/text.c b/lib/text/text.c
index faad4d938f46d27ca9cd655f51302ba17a090d8a..349ac8d1979eabe89a1db19f4c8e024637b32b54 100644
--- a/lib/text/text.c
+++ b/lib/text/text.c
@@ -76,12 +76,12 @@ void text_draw(int x, int y, const char *string)
*/
void text_update(void)
{
- struct display_info info;
- if (display_get_info(&info) < 0)
+ struct display_framebuffer fb;
+ if (display_get_framebuffer(&fb) < 0)
return;
/* get the display's surface */
- gfx_surface *surface = gfx_create_surface_from_display(&info);
+ gfx_surface *surface = gfx_create_surface_from_display(&fb);
struct text_line *line;
list_for_every_entry(&text_list, line, struct text_line, node) {
« no previous file with comments | « lib/gfxconsole/gfxconsole.c ('k') | platform/armemu/display.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698