diff options
author | louis <louis.braun@gmx.de> | 2014-12-06 10:15:25 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-12-06 10:15:25 +0100 |
commit | 997ab6c06c5cc06f2778a7a609a4268660ae4a51 (patch) | |
tree | 72d58f21af30170c65d269bc1f9d7c640b13dbe7 /views | |
parent | 974ca74366af7ab022c1fb79c4d36e1e0b4e4d14 (diff) | |
download | vdr-plugin-skindesigner-997ab6c06c5cc06f2778a7a609a4268660ae4a51.tar.gz vdr-plugin-skindesigner-997ab6c06c5cc06f2778a7a609a4268660ae4a51.tar.bz2 |
Revert "drawing ellipses antialiased with Cairo"
This reverts commit 7ce445025e10bf4eb0c4066907e588039c09f1ad.
Diffstat (limited to 'views')
-rw-r--r-- | views/view.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/views/view.c b/views/view.c index d8c37a0..2b9c4bf 100644 --- a/views/view.c +++ b/views/view.c @@ -636,17 +636,14 @@ 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;
}
- cImage *ellipse = imgCache->GetEllipse(func->GetId(), w, h, clr, quadrant);
- if (ellipse) {
- const cPoint point(x, y);
- DrawImage(num, point, *ellipse);
- }
+ DrawEllipse(num, size, clr, quadrant);
}
void cView::DoDrawSlope(int num, cTemplateFunction *func, int x0, int y0) {
|