From b30d913dbdb00a3a9116daff2791016b4a9ac19c Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 27 Mar 2013 14:38:43 +0400 Subject: [PATCH] driver/framebuffer.cpp: fix nevix box paint --- src/driver/framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index f2796977e..bc7d9fb54 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -743,7 +743,7 @@ void CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, const int #ifdef USE_NEVIS_GXA _write_gxa(gxa_base, GXA_BLT_CONTROL_REG, 0); _write_gxa(gxa_base, cmd, GXA_POINT(x + ofl, y + line)); /* destination x/y */ - _write_gxa(gxa_base, cmd, GXA_POINT(dx-ofr-ofr, 1)); /* width/height */ + _write_gxa(gxa_base, cmd, GXA_POINT(dx-ofl-ofr, 1)); /* width/height */ #else paintHLineRelInternal(x+ofl, dx-ofl-ofr, y+line, col); #endif