From 5964a70854759dd29ac977cc6af9ae9b7fe4c209 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 29 Mar 2013 14:30:08 +0400 Subject: [PATCH] driver/framebuffer.cpp: fix round corners, if only one top or bottom included --- 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 bc7d9fb54..5969fe1e7 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -720,7 +720,7 @@ void CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, const int } else { //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) - 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) fillrect.dx = x; fillrect.dy = y + line;