driver/framebuffer.cpp: fix round corners, if only one top or bottom included

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5964a70854
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-03-29 (Fri, 29 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-03-29 14:30:08 +04:00
parent 6de9a8888e
commit eff601f92d

View File

@@ -720,7 +720,7 @@ void CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, const int
} else { } else {
//printf("3: x %d y %d dx %d dy %d rad %d line %d\n", x, y, dx, dy, radius, line); //printf("3: x %d y %d dx %d dy %d rad %d line %d\n", x, y, dx, dy, radius, line);
#if defined(FB_HW_ACCELERATION) || defined(USE_NEVIS_GXA) #if defined(FB_HW_ACCELERATION) || defined(USE_NEVIS_GXA)
int rect_height_mult = (((type & (CORNER_BOTTOM | CORNER_TOP)) == (CORNER_BOTTOM | CORNER_TOP)) ? 2 : 1); int rect_height_mult = ((type & CORNER_TOP) && (type & CORNER_BOTTOM)) ? 2 : 1;
#if defined(FB_HW_ACCELERATION) #if defined(FB_HW_ACCELERATION)
fillrect.dx = x; fillrect.dx = x;
fillrect.dy = y + line; fillrect.dy = y + line;