mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 08:33:55 +08:00
tune fbcon code for r818
This commit is contained in:
@@ -358,7 +358,8 @@ static int FB_VideoInit(_THIS, GAL_PixelFormat *vformat)
|
||||
int i;
|
||||
const char *GAL_fbdev;
|
||||
|
||||
#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
||||
#if 0
|
||||
defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
||||
if (!mgIsServer) {
|
||||
vformat->BitsPerPixel = 32;
|
||||
vformat->BytesPerPixel = 4;
|
||||
@@ -1025,12 +1026,12 @@ static void FB_RequestHWSurface (_THIS, const REQ_HWSURFACE* request,
|
||||
|
||||
static int FB_AllocHWSurface (_THIS, GAL_Surface *surface)
|
||||
{
|
||||
#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
||||
#if 0
|
||||
defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
||||
return -1;
|
||||
#else
|
||||
REQ_HWSURFACE request = {surface->w, surface->h, surface->pitch, 0, NULL};
|
||||
REP_HWSURFACE reply = {0, 0, NULL};
|
||||
#endif
|
||||
|
||||
#ifdef _MGRM_PROCESSES
|
||||
if (mgIsServer)
|
||||
@@ -1057,6 +1058,7 @@ static int FB_AllocHWSurface (_THIS, GAL_Surface *surface)
|
||||
surface->hwdata = (struct private_hwdata *)reply.bucket;
|
||||
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void FB_FreeHWSurface(_THIS, GAL_Surface *surface)
|
||||
@@ -1254,7 +1256,8 @@ static int FB_SetColors(_THIS, int firstcolor, int ncolors, GAL_Color *colors)
|
||||
*/
|
||||
static void FB_VideoQuit(_THIS)
|
||||
{
|
||||
#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
||||
#if 0
|
||||
defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
||||
if (!mgIsServer) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user