summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-12-03 18:12:37 +0100
committerlouis <louis.braun@gmx.de>2014-12-03 18:12:37 +0100
commit7ce445025e10bf4eb0c4066907e588039c09f1ad (patch)
tree0a554b47d2db26909eb4628b70427cb40b8493b1 /views
parentdef1b3cc301398875b43fc52e50ed936302f56c6 (diff)
downloadvdr-plugin-skindesigner-7ce445025e10bf4eb0c4066907e588039c09f1ad.tar.gz
vdr-plugin-skindesigner-7ce445025e10bf4eb0c4066907e588039c09f1ad.tar.bz2
drawing ellipses antialiased with Cairo
Diffstat (limited to 'views')
-rw-r--r--views/view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/views/view.c b/views/view.c
index 2b9c4bf..d8c37a0 100644
--- a/views/view.c
+++ b/views/view.c
@@ -636,14 +636,17 @@ void cView::DoDrawEllipse(int num, cTemplateFunction *func, int x0, int y0) {
y += y0;
int w = func->GetNumericParameter(ptWidth);
int h = func->GetNumericParameter(ptHeight);
- cRect size(x, y, w, h);
tColor clr = func->GetColorParameter(ptColor);
int quadrant = func->GetNumericParameter(ptQuadrant);
if (quadrant < -4 || quadrant > 8) {
esyslog("skindesigner: wrong quadrant %d for drawellipse, allowed values are from -4 to 8", quadrant);
quadrant = 0;
}
- DrawEllipse(num, size, clr, quadrant);
+ cImage *ellipse = imgCache->GetEllipse(func->GetId(), w, h, clr, quadrant);
+ if (ellipse) {
+ const cPoint point(x, y);
+ DrawImage(num, point, *ellipse);
+ }
}
void cView::DoDrawSlope(int num, cTemplateFunction *func, int x0, int y0) {