mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-24 00:54:18 +08:00
tune fbcon code for r818
This commit is contained in:
@@ -360,6 +360,10 @@ static int FB_VideoInit(_THIS, GAL_PixelFormat *vformat)
|
|||||||
|
|
||||||
#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
||||||
if (!mgIsServer) {
|
if (!mgIsServer) {
|
||||||
|
vformat->Amask = 0xFF000000;
|
||||||
|
vformat->Rmask = 0x00FF0000;
|
||||||
|
vformat->Gmask = 0x0000FF00;
|
||||||
|
vformat->Bmask = 0x000000FF;
|
||||||
vformat->BitsPerPixel = 32;
|
vformat->BitsPerPixel = 32;
|
||||||
vformat->BytesPerPixel = 4;
|
vformat->BytesPerPixel = 4;
|
||||||
return 0;
|
return 0;
|
||||||
@@ -1061,6 +1065,11 @@ static int FB_AllocHWSurface (_THIS, GAL_Surface *surface)
|
|||||||
|
|
||||||
static void FB_FreeHWSurface(_THIS, GAL_Surface *surface)
|
static void FB_FreeHWSurface(_THIS, GAL_Surface *surface)
|
||||||
{
|
{
|
||||||
|
#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
|
||||||
|
surface->pixels = NULL;
|
||||||
|
surface->hwdata = NULL;
|
||||||
|
return;
|
||||||
|
#else
|
||||||
REQ_HWSURFACE request = {surface->w, surface->h, surface->pitch, 0,
|
REQ_HWSURFACE request = {surface->w, surface->h, surface->pitch, 0,
|
||||||
surface->hwdata};
|
surface->hwdata};
|
||||||
REP_HWSURFACE reply = {0, 0};
|
REP_HWSURFACE reply = {0, 0};
|
||||||
@@ -1092,6 +1101,7 @@ static void FB_FreeHWSurface(_THIS, GAL_Surface *surface)
|
|||||||
|
|
||||||
surface->pixels = NULL;
|
surface->pixels = NULL;
|
||||||
surface->hwdata = NULL;
|
surface->hwdata = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void FB_WaitVBL(_THIS)
|
static void FB_WaitVBL(_THIS)
|
||||||
|
|||||||
Reference in New Issue
Block a user