From owner-svn-src-head@FreeBSD.ORG Thu Nov 29 05:46:47 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1CF17C60; Thu, 29 Nov 2012 05:46:47 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id F3AE48FC0C; Thu, 29 Nov 2012 05:46:46 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAT5kkNn002560; Thu, 29 Nov 2012 05:46:46 GMT (envelope-from gonzo@svn.freebsd.org) Received: (from gonzo@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAT5kkZx002559; Thu, 29 Nov 2012 05:46:46 GMT (envelope-from gonzo@svn.freebsd.org) Message-Id: <201211290546.qAT5kkZx002559@svn.freebsd.org> From: Oleksandr Tymoshenko Date: Thu, 29 Nov 2012 05:46:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r243666 - head/sys/arm/broadcom/bcm2835 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 05:46:47 -0000 Author: gonzo Date: Thu Nov 29 05:46:46 2012 New Revision: 243666 URL: http://svnweb.freebsd.org/changeset/base/243666 Log: Fix hardcoded bpp value Modified: head/sys/arm/broadcom/bcm2835/bcm2835_fb.c Modified: head/sys/arm/broadcom/bcm2835/bcm2835_fb.c ============================================================================== --- head/sys/arm/broadcom/bcm2835/bcm2835_fb.c Thu Nov 29 05:16:50 2012 (r243665) +++ head/sys/arm/broadcom/bcm2835/bcm2835_fb.c Thu Nov 29 05:46:46 2012 (r243666) @@ -751,7 +751,7 @@ bcmfb_putc(video_adapter_t *adp, vm_offs p = sc->font + c*BCMFB_FONT_HEIGHT; addr = (uint8_t *)sc->fb_addr + (row + sc->ymargin)*(sc->stride) - + 3 * (col + sc->xmargin); + + (sc->depth/8) * (col + sc->xmargin); fg = a & 0xf ; bg = (a >> 8) & 0xf;