From cf6e8218bab44447c6916dfd924e41de30beb8cb Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 27 Mar 2019 14:33:25 +0100 Subject: more logind console switching --- fbtools.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'fbtools.c') diff --git a/fbtools.c b/fbtools.c index 30021fb..3158d2e 100644 --- a/fbtools.c +++ b/fbtools.c @@ -180,7 +180,11 @@ fb_setmode(char *name) return -1; } -static void fb_restore_display(void) +static void fb_suspend_display(void) +{ +} + +static void fb_resume_display(void) { ioctl(fb,FBIOPAN_DISPLAY,&fb_var); fb_set_palette(); @@ -310,7 +314,8 @@ gfxstate* fb_init(const char *device, char *mode) gfx->mem = fb_mem; gfx->fmt = fmt; - gfx->restore_display = fb_restore_display; + gfx->suspend_display = fb_suspend_display; + gfx->resume_display = fb_resume_display; gfx->cleanup_display = fb_cleanup_display; fstat(fb, &st); -- cgit