Skip to content

Commit

Permalink
Date: Mon, 15 May 2006 17:18:34 +0300
Browse files Browse the repository at this point in the history
From: Vassilis Virvilis
Subject: Re: [SDL] SDL + fbcon = weird colors (resolved)

> I am getting weird colors in 16/32 bpp in an VIA custom
> board with savagefb and in qemu (cirrusfb).

Ok looks that nowadays if you follow compiler warnings closely
all bugs will be resolved by you. This one was that a non void
function (do_mmap) was not returning anything.
I also silenced a warning since I was in janitor mode.
  • Loading branch information
slouken committed May 16, 2006
1 parent 17ef251 commit 65c75a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/fbcon/SDL_fbvideo.c
Expand Up @@ -160,13 +160,14 @@ static void *do_mmap(void *start, size_t length, int prot, int flags, int fd, of
ret = mmap(start, length, prot,
(flags & ~MAP_SHARED) | MAP_PRIVATE, fd, offset);
}
return ret;
}

/* FB driver bootstrap functions */

static int FB_Available(void)
{
int console;
int console = -1;
/* Added check for /fb/0 (devfs) */
/* but - use environment variable first... if it fails, still check defaults */
int idx = 0;
Expand Down

0 comments on commit 65c75a7

Please sign in to comment.