linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] viafb: Use proper register for bgcolor when doing MONO blits
@ 2010-09-21 15:46 Daniel Drake
  2010-09-21 17:00 ` [PATCH] viafb: Use proper register for bgcolor when doing MONO Florian Tobias Schandinat
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Daniel Drake @ 2010-09-21 15:46 UTC (permalink / raw)
  To: linux-fbdev

From: Jon Nettleton <jon.nettleton@gmail.com>

Seemingly random colours were being painted as the background on the
terminal. This fixes MONO color blits.

Fixes http://dev.laptop.org/ticket/9323

Signed-off-by: Daniel Drake <dsd@laptop.org>

---
 drivers/video/via/accel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/via/accel.c b/drivers/video/via/accel.c
index e44893e..8d9819c 100644
--- a/drivers/video/via/accel.c
+++ b/drivers/video/via/accel.c
@@ -287,7 +287,7 @@ static int hw_bitblt_2(void __iomem *engine, u8 op, u32 width, u32 height,
 		writel(fg_color, engine + 0x4C);
 
 	if (op = VIA_BITBLT_MONO)
-		writel(bg_color, engine + 0x50);
+		writel(bg_color, engine + 0x58);
 
 	if (op = VIA_BITBLT_FILL)
 		ge_cmd |= fill_rop << 24 | 0x00002000 | 0x00000001;
-- 
1.7.2.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-09-22  2:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-21 15:46 [PATCH] viafb: Use proper register for bgcolor when doing MONO blits Daniel Drake
2010-09-21 17:00 ` [PATCH] viafb: Use proper register for bgcolor when doing MONO Florian Tobias Schandinat
2010-09-21 17:07 ` [PATCH] viafb: Use proper register for bgcolor when doing MONO blits Daniel Drake
2010-09-21 19:37 ` Jon Nettleton
2010-09-21 20:31 ` [PATCH] viafb: Use proper register for bgcolor when doing MONO Florian Tobias Schandinat
2010-09-21 22:18 ` [PATCH] viafb: Use proper register for bgcolor when doing MONO blits Jon Nettleton
2010-09-22  2:52   ` [PATCH] viafb: use proper register for colour when doing fill ops Florian Tobias Schandinat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).