Skip to content

Commit

Permalink
Update to AU_LINUX_ANDROID_JB_3.2.04.03.00.112.372
Browse files Browse the repository at this point in the history
Change-Id: I0e9dab8a812a111f465656036daaa9d37de3de50
  • Loading branch information
ikumar committed Jan 11, 2014
2 parents 24f35ef + b1e6c82 commit 01bf7e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions minui/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ static int leftSplit = 0;
static int rightSplit = 0;

bool target_has_overlay(char *version);
bool isTargetMdp5(void);
int free_ion_mem(void);
int alloc_ion_mem(unsigned int size);
int allocate_overlay(int fd, GGLSurface gr_fb[]);
Expand Down Expand Up @@ -205,7 +206,7 @@ static void get_memory_surface(GGLSurface* ms) {
ms->format = PIXEL_FORMAT;
}

void setDisplaySplit() {
void setDisplaySplit(void) {
char split[64] = {0};
FILE* fp = fopen("/sys/class/graphics/fb0/msm_fb_split", "r");
if (fp) {
Expand All @@ -225,7 +226,7 @@ void setDisplaySplit() {
fclose(fp);
}

int getLeftSplit() {
int getLeftSplit(void) {
//Default even split for all displays with high res
int lSplit = vi.xres / 2;

Expand All @@ -236,11 +237,11 @@ int getLeftSplit() {
return lSplit;
}

int getRightSplit() {
int getRightSplit(void) {
return rightSplit;
}

bool isDisplaySplit() {
bool isDisplaySplit(void) {
if (vi.xres > MAX_DISPLAY_DIM)
return true;
//check if right split is set by driver
Expand All @@ -250,11 +251,11 @@ bool isDisplaySplit() {
return false;
}

int getFbXres() {
int getFbXres(void) {
return vi.xres;
}

int getFbYres () {
int getFbYres (void) {
return vi.yres;
}

Expand Down
2 changes: 1 addition & 1 deletion minui/graphics_overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ static int overlayL_id = MSMFB_NEW_REQUEST;
static int overlayR_id = MSMFB_NEW_REQUEST;

static memInfo mem_info;
static isMDP5 = false;

static int map_mdp_pixel_format()
{
Expand All @@ -84,6 +83,7 @@ static int map_mdp_pixel_format()
#endif // #ifdef QCOM_BSP

static bool overlay_supported = false;
static bool isMDP5 = false;

bool target_has_overlay(char *version)
{
Expand Down

0 comments on commit 01bf7e8

Please sign in to comment.