diff options
| author | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1999-01-13 09:59:30 +0000 |
|---|---|---|
| committer | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1999-01-13 09:59:30 +0000 |
| commit | 15401862e4840ddf83f91b25f31f7c4fcc7a81e4 (patch) | |
| tree | 74edece3f47e1462c742fac64864c957ece93ee4 /sys/modules/splash | |
| parent | e1b5fc4c5949ff14c3a42824a28256a8180b7bc7 (diff) | |
Notes
Diffstat (limited to 'sys/modules/splash')
| -rw-r--r-- | sys/modules/splash/bmp/splash_bmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/modules/splash/bmp/splash_bmp.c b/sys/modules/splash/bmp/splash_bmp.c index bfb5916029e4..03192c697e39 100644 --- a/sys/modules/splash/bmp/splash_bmp.c +++ b/sys/modules/splash/bmp/splash_bmp.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: splash_bmp.c,v 1.1 1999/01/11 03:34:56 yokota Exp $ + * $Id: splash_bmp.c,v 1.2 1999/01/11 17:32:22 yokota Exp $ */ #include <sys/param.h> @@ -444,7 +444,7 @@ bmp_Init(const char *data, int swidth, int sheight, int sdepth) bmp_info.ncols = (bmf->bmfi.bmiHeader.biClrUsed); bzero(bmp_info.palette,sizeof(bmp_info.palette)); if (bmp_info.ncols == 0) { /* uses all of them */ - bmp_info.ncols = 2 << bmf->bmfi.bmiHeader.biBitCount; + bmp_info.ncols = 1 << bmf->bmfi.bmiHeader.biBitCount; } if ((bmp_info.height > bmp_info.sheight) || (bmp_info.width > bmp_info.swidth) || |
