From ed37fa4fc2611aaa9238279a96d96d19783e086c Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Fri, 4 Jun 2021 19:29:58 +0800 Subject: [PATCH] tune fbcon code for r818 --- src/newgal/fbcon/fbvideo.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/newgal/fbcon/fbvideo.c b/src/newgal/fbcon/fbvideo.c index cb4370ed..30004ac4 100644 --- a/src/newgal/fbcon/fbvideo.c +++ b/src/newgal/fbcon/fbvideo.c @@ -358,8 +358,7 @@ static int FB_VideoInit(_THIS, GAL_PixelFormat *vformat) int i; const char *GAL_fbdev; -#if 0 - defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING) +#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING) if (!mgIsServer) { vformat->BitsPerPixel = 32; vformat->BytesPerPixel = 4; @@ -1026,8 +1025,7 @@ static void FB_RequestHWSurface (_THIS, const REQ_HWSURFACE* request, static int FB_AllocHWSurface (_THIS, GAL_Surface *surface) { -#if 0 - defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING) +#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING) return -1; #else REQ_HWSURFACE request = {surface->w, surface->h, surface->pitch, 0, NULL}; @@ -1256,8 +1254,7 @@ static int FB_SetColors(_THIS, int firstcolor, int ncolors, GAL_Color *colors) */ static void FB_VideoQuit(_THIS) { -#if 0 - defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING) +#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING) if (!mgIsServer) { return; }