From f56529febf46dbd8e9c5ec1012b513fae58bdf2e Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Tue, 10 Mar 2020 18:50:09 +0800 Subject: [PATCH] enable RequestHWSurface for compositing schema --- src/newgal/fbcon/fbvideo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/newgal/fbcon/fbvideo.c b/src/newgal/fbcon/fbvideo.c index 45222178..8e20dc31 100644 --- a/src/newgal/fbcon/fbvideo.c +++ b/src/newgal/fbcon/fbvideo.c @@ -165,7 +165,7 @@ static GAL_VideoDevice *FB_CreateDevice(int devindex) this->SetVideoMode = FB_SetVideoMode; this->SetColors = FB_SetColors; this->VideoQuit = FB_VideoQuit; -#if IS_SHAREDFB_SCHEMA +#ifdef _MGRM_PROCESSES this->RequestHWSurface = FB_RequestHWSurface; #endif this->AllocHWSurface = FB_AllocHWSurface; @@ -533,7 +533,7 @@ static void print_finfo(struct fb_fix_screeninfo *finfo) fprintf(stderr, "tmmio_len = %d\n", finfo->mmio_len); fprintf(stderr, "taccel = %d\n", finfo->accel); } -#endif +#endif /* FBCON_DEBUG */ static GAL_Surface *FB_SetVideoMode(_THIS, GAL_Surface *current, int width, int height, int bpp, Uint32 flags) @@ -756,7 +756,7 @@ static void FB_DumpHWSurfaces(_THIS) } fprintf(stderr, "\n"); } -#endif +#endif /* FBACCEL_DEBUG */ static int FB_InitHWSurfaces(_THIS, GAL_Surface *screen, char *base, int size) {