Commit 467c8a81 authored by Sam Lantinga's avatar Sam Lantinga

Date: Mon, 15 May 2006 17:18:34 +0300

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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401798
parent 3e2af2ef
...@@ -160,13 +160,14 @@ static void *do_mmap(void *start, size_t length, int prot, int flags, int fd, of ...@@ -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, ret = mmap(start, length, prot,
(flags & ~MAP_SHARED) | MAP_PRIVATE, fd, offset); (flags & ~MAP_SHARED) | MAP_PRIVATE, fd, offset);
} }
return ret;
} }
/* FB driver bootstrap functions */ /* FB driver bootstrap functions */
static int FB_Available(void) static int FB_Available(void)
{ {
int console; int console = -1;
/* Added check for /fb/0 (devfs) */ /* Added check for /fb/0 (devfs) */
/* but - use environment variable first... if it fails, still check defaults */ /* but - use environment variable first... if it fails, still check defaults */
int idx = 0; int idx = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment